summaryrefslogtreecommitdiff
path: root/SQL/mysql.update.sql
blob: b64f407c71a1570b02efd41a5c68b5e4001f3c4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- RoundCube Webmail update script for MySQL databases
-- Updates from version 0.1-beta and 0.1-beta2

ALTER TABLE `messages`
  DROP `body`,
  DROP INDEX `cache_key`,
  ADD `structure` TEXT,
  ADD UNIQUE `uniqueness` (`user_id`, `cache_key`, `uid`);

ALTER TABLE `identities`
  ADD `html_signature` tinyint(1) default 0 NOT NULL;

-- Uncomment these lines if you're using MySQL 4.1 or higher
-- ALTER TABLE `users`
--  DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci,
--  CHANGE `username` `username` VARCHAR( 128 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
--  CHANGE `alias` `alias` VARCHAR( 128 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;