Hopefully fixed user_timezone bug in PostgreSQL upgrade
authorDan
Sat, 12 Jul 2008 00:07:23 -0400
changeset 625 0122f538c242
parent 624 e9c04ed3290f
child 626 be0e904eec17
Hopefully fixed user_timezone bug in PostgreSQL upgrade
install/schemas/upgrade/1.1.1-1.1.2-postgresql.sql
--- a/install/schemas/upgrade/1.1.1-1.1.2-postgresql.sql	Wed Jul 09 23:44:19 2008 -0400
+++ b/install/schemas/upgrade/1.1.1-1.1.2-postgresql.sql	Sat Jul 12 00:07:23 2008 -0400
@@ -5,7 +5,8 @@
 ALTER TABLE {{TABLE_PREFIX}}logs ADD COLUMN is_draft smallint NOT NULL DEFAULT 0;
 
 ALTER TABLE {{TABLE_PREFIX}}users ADD COLUMN user_rank int NOT NULL DEFAULT 1;
-@ALTER TABLE {{TABLE_PREFIX}}users ADD COLUMN user_timezone int NOT NULL DEFAULT 0;
+@ALTER TABLE {{TABLE_PREFIX}}users DROP user_timezone;
+ALTER TABLE {{TABLE_PREFIX}}users ADD COLUMN user_timezone int NOT NULL DEFAULT 0;
 
 ALTER TABLE {{TABLE_PREFIX}}themes
   ADD COLUMN group_list text DEFAULT NULL,
@@ -25,7 +26,7 @@
   code varchar(64) NOT NULL DEFAULT '',
   session_data text,
   source_ip varchar(39),
-  user_id int(12),
+  user_id int,
   PRIMARY KEY ( code_id )
 );