From: Greg Sabino Mullane Date: Wed, 2 May 2007 17:14:12 +0000 (+0000) Subject: Add pr_id column to page_restrictions table. X-Git-Tag: 1.31.0-rc.0~53121 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=2d9b9255826974e53f5362364492967fa6d6691d;p=lhc%2Fweb%2Fwiklou.git Add pr_id column to page_restrictions table. --- diff --git a/maintenance/updaters.inc b/maintenance/updaters.inc index 8d1753d314..b5bc2ecc44 100644 --- a/maintenance/updaters.inc +++ b/maintenance/updaters.inc @@ -1166,7 +1166,8 @@ function do_postgres_updates() { $wgDBmwschema = 'mediawiki'; $newsequences = array( - "log_log_id_seq" + "log_log_id_seq", + "pr_id_val", ); $newtables = array( @@ -1191,6 +1192,7 @@ function do_postgres_updates() { array("logging", "log_params", "TEXT"), array("mwuser", "user_editcount", "INTEGER"), array("mwuser", "user_newpass_time", "TIMESTAMPTZ"), + array("page_restrictions", "pr_id", "INTEGER NOT NULL UNIQUE DEFAULT nextval('pr_id_val')"), array("recentchanges", "rc_deleted", "INTEGER NOT NULL DEFAULT 0"), array("recentchanges", "rc_log_action", "TEXT"), array("recentchanges", "rc_log_type", "TEXT"),