r49803 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49802‎ | r49803 | r49804 >
Date:08:49, 24 April 2009
Author:ialex
Status:ok (Comments)
Tags:
Comment:
Follow-up r49790: update the PostgreSQL schema
Modified paths:
  • /trunk/phase3/maintenance/postgres/archives/patch-user_properties.sql (added) (history)
  • /trunk/phase3/maintenance/postgres/tables.sql (modified) (history)
  • /trunk/phase3/maintenance/updaters.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/postgres/archives/patch-user_properties.sql
@@ -0,0 +1,8 @@
 2+CREATE TABLE user_properties(
 3+ up_user BIGINT NOT NULL,
 4+ up_property TEXT NOT NULL,
 5+ up_value TEXT
 6+);
 7+
 8+CREATE UNIQUE INDEX user_properties_user_property on user_properties (up_user,up_property);
 9+CREATE INDEX user_properties_property on user_properties (up_property);
Property changes on: trunk/phase3/maintenance/postgres/archives/patch-user_properties.sql
___________________________________________________________________
Added: svn:eol-style
110 + native
Index: trunk/phase3/maintenance/postgres/tables.sql
@@ -580,6 +580,14 @@
581581 vt_tag TEXT NOT NULL PRIMARY KEY
582582 );
583583
 584+CREATE TABLE user_properties(
 585+ up_user BIGINT NOT NULL,
 586+ up_property TEXT NOT NULL,
 587+ up_value TEXT
 588+);
 589+CREATE UNIQUE INDEX user_properties_user_property on user_properties (up_user,up_property);
 590+CREATE INDEX user_properties_property on user_properties (up_property);
 591+
584592 CREATE TABLE mediawiki_version (
585593 type TEXT NOT NULL,
586594 mw_version TEXT NOT NULL,
Index: trunk/phase3/maintenance/updaters.inc
@@ -1503,8 +1503,9 @@
15041504 array("redirect", "patch-redirect.sql"),
15051505 array("updatelog", "patch-updatelog.sql"),
15061506 array('change_tag', 'patch-change_tag.sql'),
1507 - array('tag_summary', 'patch-change_tag.sql'),
1508 - array('valid_tag', 'patch-change_tag.sql'),
 1507+ array('tag_summary', 'patch-change_tag.sql'),
 1508+ array('valid_tag', 'patch-change_tag.sql'),
 1509+ array('user_properties', 'patch-user_properties.sql'),
15091510 );
15101511
15111512 $newcols = array(

Follow-up revisions

RevisionCommit summaryAuthorDate
r50011Follow-up to r49803: use proper type and add an explicit foreign key referenc...brion18:42, 28 April 2009

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r49790Branch merge of preferences work branch. Includes fixes for several bugs. WAR...werdna01:31, 24 April 2009

Comments

#Comment by Brion VIBBER (talk | contribs)   18:42, 28 April 2009

Tweaked the type from BIGINT to INTEGER and made it a proper foreign key in r50011 to match other tables.

Status & tagging log