Follow-up to r49803: use proper type and add an explicit foreign key reference for...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 28 Apr 2009 18:42:26 +0000 (18:42 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 28 Apr 2009 18:42:26 +0000 (18:42 +0000)
maintenance/postgres/archives/patch-user_properties.sql
maintenance/postgres/tables.sql

index 4c930c8..b40fa85 100644 (file)
@@ -1,5 +1,5 @@
 CREATE TABLE user_properties(
-  up_user BIGINT NOT NULL,
+  up_user   INTEGER      NULL  REFERENCES mwuser(user_id) ON DELETE CASCADE,
   up_property TEXT NOT NULL,
   up_value TEXT
 );
index e6485f7..9c55e0e 100644 (file)
@@ -581,7 +581,7 @@ CREATE TABLE valid_tag (
 );
 
 CREATE TABLE user_properties(
-  up_user BIGINT NOT NULL,
+  up_user   INTEGER      NULL  REFERENCES mwuser(user_id) ON DELETE CASCADE,
   up_property TEXT NOT NULL,
   up_value TEXT
 );