diff options
author | alecpl <alec@alec.pl> | 2011-11-23 10:02:46 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-11-23 10:02:46 +0000 |
commit | f45074341c84a23720874ab647a0a602a16e41f5 (patch) | |
tree | b902340d000323b913581745767d77605c8c5a4b | |
parent | e01e7985176867c0fe7dae2853c44aff53a56db7 (diff) |
- Add version markers
-rw-r--r-- | SQL/mssql.upgrade.sql | 2 | ||||
-rw-r--r-- | SQL/mysql.update.sql | 2 | ||||
-rw-r--r-- | SQL/postgres.update.sql | 2 | ||||
-rw-r--r-- | SQL/sqlite.update.sql | 2 |
4 files changed, 8 insertions, 0 deletions
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, |