r101968 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101967‎ | r101968 | r101969 >
Date:07:17, 4 November 2011
Author:freakolowsky
Status:ok
Tags:
Comment:
* fixed a typo in oracle/tables.sql
* readded the sha1 fields (installer & upgrader)
Modified paths:
  • /trunk/phase3/includes/installer/OracleUpdater.php (modified) (history)
  • /trunk/phase3/maintenance/oracle/archives/patch-ar_sha1_field.sql (added) (history)
  • /trunk/phase3/maintenance/oracle/archives/patch-rev_sha1_field.sql (added) (history)
  • /trunk/phase3/maintenance/oracle/tables.sql (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/oracle/archives/patch-rev_sha1_field.sql
@@ -0,0 +1,4 @@
 2+define mw_prefix='{$wgDBprefix}';
 3+
 4+ALTER TABLE &mw_prefix.revision ADD rev_sha1 VARCHAR2(32);
 5+
Property changes on: trunk/phase3/maintenance/oracle/archives/patch-rev_sha1_field.sql
___________________________________________________________________
Added: svn:eol-style
16 + native
Index: trunk/phase3/maintenance/oracle/archives/patch-ar_sha1_field.sql
@@ -0,0 +1,3 @@
 2+define mw_prefix='{$wgDBprefix}';
 3+
 4+ALTER TABLE &mw_prefix.archive ADD ar_sha1 VARCHAR2(32);
Property changes on: trunk/phase3/maintenance/oracle/archives/patch-ar_sha1_field.sql
___________________________________________________________________
Added: svn:eol-style
15 + native
Index: trunk/phase3/maintenance/oracle/tables.sql
@@ -44,10 +44,6 @@
4545 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;
4646 CREATE UNIQUE INDEX &mw_prefix.user_former_groups_u01 ON &mw_prefix.user_former_groups (ufg_user,ufg_group);
4747
48 -
49 -CREATE UNIQUE INDEX /*i*/ufg_user_group ON /*_*/user_former_groups (ufg_user,ufg_group);
50 -
51 -
5248 CREATE TABLE &mw_prefix.user_newtalk (
5349 user_id NUMBER DEFAULT 0 NOT NULL,
5450 user_ip VARCHAR2(40) NULL,
@@ -108,7 +104,8 @@
109105 rev_minor_edit CHAR(1) DEFAULT '0' NOT NULL,
110106 rev_deleted CHAR(1) DEFAULT '0' NOT NULL,
111107 rev_len NUMBER NULL,
112 - rev_parent_id NUMBER DEFAULT NULL
 108+ rev_parent_id NUMBER DEFAULT NULL,
 109+ rev_sha1 VARCHAR2(32) NULL
113110 );
114111 ALTER TABLE &mw_prefix.revision ADD CONSTRAINT &mw_prefix.revision_pk PRIMARY KEY (rev_id);
115112 ALTER TABLE &mw_prefix.revision ADD CONSTRAINT &mw_prefix.revision_fk1 FOREIGN KEY (rev_page) REFERENCES &mw_prefix.page(page_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED;
@@ -142,7 +139,8 @@
143140 ar_deleted CHAR(1) DEFAULT '0' NOT NULL,
144141 ar_len NUMBER,
145142 ar_page_id NUMBER,
146 - ar_parent_id NUMBER
 143+ ar_parent_id NUMBER,
 144+ ar_sha1 VARCHAR2(32) NULL
147145 );
148146 ALTER TABLE &mw_prefix.archive ADD CONSTRAINT &mw_prefix.archive_fk1 FOREIGN KEY (ar_user) REFERENCES &mw_prefix.mwuser(user_id) ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED;
149147 CREATE INDEX &mw_prefix.archive_i01 ON &mw_prefix.archive (ar_namespace,ar_title,ar_timestamp);
Index: trunk/phase3/includes/installer/OracleUpdater.php
@@ -44,6 +44,8 @@
4545 array( 'addTable', 'globaltemplatelinks', 'patch-globaltemplatelinks.sql' ),
4646 array( 'addTable', 'globalnamespaces', 'patch-globalnamespaces.sql' ),
4747 array( 'addTable', 'globalinterwiki', 'patch-globalinterwiki.sql' ),
 48+ array( 'addField', 'revision', 'rev_sha1', 'patch-rev_sha1_field.sql' ),
 49+ array( 'addField', 'archive', 'ar_sha1', 'patch-ar_sha1_field.sql' ),
4850
4951 // till 2.0 i guess
5052 array( 'doRebuildDuplicateFunction' ),

Status & tagging log