From ef4849a201277cc1fa39bca4834308e56ec3aa73 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 28 Apr 2009 18:42:26 +0000 Subject: [PATCH] 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 --- maintenance/postgres/archives/patch-user_properties.sql | 2 +- maintenance/postgres/tables.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.20.1