From f45074341c84a23720874ab647a0a602a16e41f5 Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 23 Nov 2011 10:02:46 +0000 Subject: [PATCH] - Add version markers --- SQL/mssql.upgrade.sql | 2 ++ SQL/mysql.update.sql | 2 ++ SQL/postgres.update.sql | 2 ++ SQL/sqlite.update.sql | 2 ++ 4 files changed, 8 insertions(+) diff --git a/SQL/mssql.upgrade.sql b/SQL/mssql.upgrade.sql index b479b1677..78efda219 100644 --- a/SQL/mssql.upgrade.sql +++ b/SQL/mssql.upgrade.sql @@ -239,6 +239,8 @@ ALTER TABLE [dbo].[cache_messages] ADD CONSTRAINT [FK_cache_messages_user_id] ON DELETE CASCADE ON UPDATE CASCADE GO +-- Updates from version 0.7-beta + ALTER TABLE [dbo].[session] ALTER COLUMN [sess_id] [varchar] (128) COLLATE Latin1_General_CI_AI NOT NULL GO diff --git a/SQL/mysql.update.sql b/SQL/mysql.update.sql index 053649b59..07617316b 100644 --- a/SQL/mysql.update.sql +++ b/SQL/mysql.update.sql @@ -209,4 +209,6 @@ CREATE TABLE `cache_messages` ( PRIMARY KEY (`user_id`, `mailbox`, `uid`) ) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */; +-- Updates from version 0.7-beta + ALTER TABLE `session` CHANGE `sess_id` `sess_id` varchar(128) NOT NULL; diff --git a/SQL/postgres.update.sql b/SQL/postgres.update.sql index d06ee8487..c96669dc8 100644 --- a/SQL/postgres.update.sql +++ b/SQL/postgres.update.sql @@ -166,4 +166,6 @@ CREATE TABLE cache_messages ( CREATE INDEX cache_messages_changed_idx ON cache_messages (changed); +-- Updates from version 0.7-beta + ALTER TABLE "session" ALTER sess_id TYPE varchar(128); diff --git a/SQL/sqlite.update.sql b/SQL/sqlite.update.sql index e6b3ee125..92f6da142 100644 --- a/SQL/sqlite.update.sql +++ b/SQL/sqlite.update.sql @@ -283,6 +283,8 @@ CREATE TABLE cache_messages ( CREATE INDEX ix_cache_messages_changed ON cache_messages (changed); +-- Updates from version 0.7-beta + DROP TABLE session; CREATE TABLE session ( sess_id varchar(128) NOT NULL PRIMARY KEY,