diff options
author | thomascube <thomas@roundcube.net> | 2005-11-06 16:37:45 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2005-11-06 16:37:45 +0000 |
commit | e0ddd4e6c03d533cc3f8427624e026cc20c88fa6 (patch) | |
tree | 9bdaed87ebc57351eb9485c196ba8bec91cb3890 /SQL | |
parent | 317219dafe98b70797ef853571c255de0654d4aa (diff) |
Added 'changed' col to contacts table and support for 160-bit session hashes
Diffstat (limited to 'SQL')
-rw-r--r-- | SQL/mysql.initial.sql | 2 | ||||
-rw-r--r-- | SQL/mysql.update.sql | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/SQL/mysql.initial.sql b/SQL/mysql.initial.sql index 7746f123d..73905cab8 100644 --- a/SQL/mysql.initial.sql +++ b/SQL/mysql.initial.sql @@ -68,7 +68,7 @@ CREATE TABLE `identities` ( -- CREATE TABLE `session` ( - `sess_id` varchar(32) NOT NULL default '', + `sess_id` varchar(40) NOT NULL default '', `created` datetime NOT NULL default '0000-00-00 00:00:00', `changed` datetime NOT NULL default '0000-00-00 00:00:00', `ip` VARCHAR(15) NOT NULL default '', diff --git a/SQL/mysql.update.sql b/SQL/mysql.update.sql index 8cd8c5c02..0119225ef 100644 --- a/SQL/mysql.update.sql +++ b/SQL/mysql.update.sql @@ -4,3 +4,11 @@ ALTER TABLE session ADD ip VARCHAR(15) NOT NULL AFTER changed; ALTER TABLE users ADD alias VARCHAR(128) NOT NULL AFTER mail_host; + + + +-- RoundCube Webmail update script for MySQL databases +-- Version 0.1-20051021 + +ALTER TABLE `session` CHANGE `sess_id` `sess_id` VARCHAR(40) NOT NULL; +ALTER TABLE `contacts` ADD `changed` DATETIME NOT NULL AFTER `user_id`; |