From: Brion Vibber Date: Tue, 28 Apr 2009 18:42:26 +0000 (+0000) Subject: Follow-up to r49803: use proper type and add an explicit foreign key reference for... X-Git-Tag: 1.31.0-rc.0~41949 X-Git-Url: http://git.cyclocoop.org//%27http:/jquery.khurshid.com/ifixpng.php/%27?a=commitdiff_plain;h=ef4849a201277cc1fa39bca4834308e56ec3aa73;p=lhc%2Fweb%2Fwiklou.git Follow-up to r49803: use proper type and add an explicit foreign key reference for up_user->user_id as we have for other tables in the postgresql schema --- diff --git a/maintenance/postgres/archives/patch-user_properties.sql b/maintenance/postgres/archives/patch-user_properties.sql index 4c930c80c8..b40fa85fce 100644 --- a/maintenance/postgres/archives/patch-user_properties.sql +++ b/maintenance/postgres/archives/patch-user_properties.sql @@ -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 ); diff --git a/maintenance/postgres/tables.sql b/maintenance/postgres/tables.sql index e6485f7f8b..9c55e0ec92 100644 --- a/maintenance/postgres/tables.sql +++ b/maintenance/postgres/tables.sql @@ -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 );