aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/postgres/archives/patch-user_properties.sql
diff options
context:
space:
mode:
authorBrion Vibber <brion@users.mediawiki.org>2009-04-28 18:42:26 +0000
committerBrion Vibber <brion@users.mediawiki.org>2009-04-28 18:42:26 +0000
commitef4849a201277cc1fa39bca4834308e56ec3aa73 (patch)
treef525946e5baef0987990712af8fb0935162529fa /maintenance/postgres/archives/patch-user_properties.sql
parent34bbdb98408373a64f62591675d98c12e1f7b049 (diff)
downloadmediawikicore-ef4849a201277cc1fa39bca4834308e56ec3aa73.tar.gz
mediawikicore-ef4849a201277cc1fa39bca4834308e56ec3aa73.zip
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
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/50011
Diffstat (limited to 'maintenance/postgres/archives/patch-user_properties.sql')
-rw-r--r--maintenance/postgres/archives/patch-user_properties.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/maintenance/postgres/archives/patch-user_properties.sql b/maintenance/postgres/archives/patch-user_properties.sql
index 4c930c80c87c..b40fa85fce73 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
);