diff options
| author | netbit <netbit@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-09-17 12:50:54 +0000 |
|---|---|---|
| committer | netbit <netbit@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-09-17 12:50:54 +0000 |
| commit | cb11c83a90bf7434b91e0b1e2bfdd26242b95928 (patch) | |
| tree | 76cd847f41e1c4cc52f72b6181ff9cdcbf8bfee6 /roundcubemail/SQL | |
| parent | 85da924261b7ada8cbbea2de22781b65af882205 (diff) | |
- Change MySQL data type to avoid problems with big session vars
git-svn-id: https://svn.roundcube.net/trunk@2961 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/SQL')
| -rw-r--r-- | roundcubemail/SQL/mysql.initial.sql | 2 | ||||
| -rw-r--r-- | roundcubemail/SQL/mysql.update.sql | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/roundcubemail/SQL/mysql.initial.sql b/roundcubemail/SQL/mysql.initial.sql index 75b6d6331..1bc888458 100644 --- a/roundcubemail/SQL/mysql.initial.sql +++ b/roundcubemail/SQL/mysql.initial.sql @@ -10,7 +10,7 @@ CREATE TABLE `session` ( `created` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', `changed` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', `ip` varchar(40) NOT NULL, - `vars` text NOT NULL, + `vars` mediumtext NOT NULL, PRIMARY KEY(`sess_id`), INDEX `changed_index` (`changed`) ) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */; diff --git a/roundcubemail/SQL/mysql.update.sql b/roundcubemail/SQL/mysql.update.sql index 7091f30a0..729fd3c66 100644 --- a/roundcubemail/SQL/mysql.update.sql +++ b/roundcubemail/SQL/mysql.update.sql @@ -1,5 +1,5 @@ -- RoundCube Webmail update script for MySQL databases --- Updates from version 0.1-stable to 0.1.1 +-- Updates from version 0.1-stable to 0.3.1 TRUNCATE TABLE `messages`; @@ -51,3 +51,6 @@ ALTER TABLE `messages` ADD INDEX `index_index` (`user_id`, `cache_key`, `idx`); TRUNCATE `messages`; + +ALTER TABLE `session` + CHANGE `vars` `vars` MEDIUMTEXT NOT NULL; |
