diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-09-02 15:19:34 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-09-02 15:19:34 +0200 |
commit | 9498a3d2852ace0f4ee23598f542dbce3fd2ec28 (patch) | |
tree | 5aeced25a9fc09f93682788259f5c7d6d248634d /maintenance | |
parent | 588cc40aeec0165400421ef9612e81b6d2c7b936 (diff) |
Update to MediaWiki 1.19.2
Diffstat (limited to 'maintenance')
5 files changed, 27 insertions, 3 deletions
diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index bdd4d397..bee5a67c 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -1230,6 +1230,7 @@ $wgMessageStructure = array( 'newsectionsummary', 'rc-enhanced-expand', 'rc-enhanced-hide', + 'rc-old-title', ), 'recentchangeslinked' => array( 'recentchangeslinked', diff --git a/maintenance/oracle/archives/patch-page_restrictions_pkuk_fix.sql b/maintenance/oracle/archives/patch-page_restrictions_pkuk_fix.sql new file mode 100644 index 00000000..56c392c1 --- /dev/null +++ b/maintenance/oracle/archives/patch-page_restrictions_pkuk_fix.sql @@ -0,0 +1,7 @@ +define mw_prefix='{$wgDBprefix}'; + +ALTER TABLE &mw_prefix.page_restrictions DROP CONSTRAINT &mw_prefix.page_restrictions_pk; + +ALTER TABLE &mw_prefix.page_restrictions ADD CONSTRAINT &mw_prefix.page_restrictions_pk PRIMARY KEY (pr_id); + +CREATE UNIQUE INDEX &mw_prefix.page_restrictions_u01 ON &mw_prefix.page_restrictions (pr_page,pr_type); diff --git a/maintenance/oracle/archives/patch-ufg_group-length-increase.sql b/maintenance/oracle/archives/patch-ufg_group-length-increase.sql new file mode 100644 index 00000000..a48b8bff --- /dev/null +++ b/maintenance/oracle/archives/patch-ufg_group-length-increase.sql @@ -0,0 +1,9 @@ +define mw_prefix='{$wgDBprefix}'; + +/*$mw$*/ +BEGIN + EXECUTE IMMEDIATE 'ALTER TABLE &mw_prefix.user_former_groups MODIFY ufg_group VARCHAR2(32) NOT NULL'; +EXCEPTION WHEN OTHERS THEN + IF (SQLCODE = -01442) THEN NULL; ELSE RAISE; END IF; +END; +/*$mw$*/ diff --git a/maintenance/oracle/archives/patch-ug_group-length-increase.sql b/maintenance/oracle/archives/patch-ug_group-length-increase.sql index 00a3d0c9..89e55329 100644 --- a/maintenance/oracle/archives/patch-ug_group-length-increase.sql +++ b/maintenance/oracle/archives/patch-ug_group-length-increase.sql @@ -1,3 +1,9 @@ define mw_prefix='{$wgDBprefix}'; -ALTER TABLE &mw_prefix.user_groups MODIFY ug_group VARCHAR2(32) NOT NULL; +/*$mw$*/ +BEGIN + EXECUTE IMMEDIATE 'ALTER TABLE &mw_prefix.user_groups MODIFY ug_group VARCHAR2(32) NOT NULL'; +EXCEPTION WHEN OTHERS THEN + IF (SQLCODE = -01442) THEN NULL; ELSE RAISE; END IF; +END; +/*$mw$*/ diff --git a/maintenance/oracle/tables.sql b/maintenance/oracle/tables.sql index 9f875aed..8c0ca30e 100644 --- a/maintenance/oracle/tables.sql +++ b/maintenance/oracle/tables.sql @@ -39,7 +39,7 @@ CREATE INDEX &mw_prefix.user_groups_i01 ON &mw_prefix.user_groups (ug_group); CREATE TABLE &mw_prefix.user_former_groups ( ufg_user NUMBER DEFAULT 0 NOT NULL, - ufg_group VARCHAR2(16) NOT NULL + ufg_group VARCHAR2(32) NOT NULL ); ALTER TABLE &mw_prefix.user_former_groups ADD CONSTRAINT &mw_prefix.user_former_groups_fk1 FOREIGN KEY (ufg_user) REFERENCES &mw_prefix.mwuser(user_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED; CREATE UNIQUE INDEX &mw_prefix.user_former_groups_u01 ON &mw_prefix.user_former_groups (ufg_user,ufg_group); @@ -564,8 +564,9 @@ CREATE TABLE &mw_prefix.page_restrictions ( pr_user NUMBER NULL, pr_expiry TIMESTAMP(6) WITH TIME ZONE NULL ); -ALTER TABLE &mw_prefix.page_restrictions ADD CONSTRAINT &mw_prefix.page_restrictions_pk PRIMARY KEY (pr_page,pr_type); +ALTER TABLE &mw_prefix.page_restrictions ADD CONSTRAINT &mw_prefix.page_restrictions_pk PRIMARY KEY (pr_id); ALTER TABLE &mw_prefix.page_restrictions ADD CONSTRAINT &mw_prefix.page_restrictions_fk1 FOREIGN KEY (pr_page) REFERENCES &mw_prefix.page(page_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED; +CREATE UNIQUE INDEX &mw_prefix.page_restrictions_u01 ON &mw_prefix.page_restrictions (pr_page,pr_type); CREATE INDEX &mw_prefix.page_restrictions_i01 ON &mw_prefix.page_restrictions (pr_type,pr_level); CREATE INDEX &mw_prefix.page_restrictions_i02 ON &mw_prefix.page_restrictions (pr_level); CREATE INDEX &mw_prefix.page_restrictions_i03 ON &mw_prefix.page_restrictions (pr_cascade); |