r111162 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111161‎ | r111162 | r111163 >
Date:15:35, 10 February 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
kill obsolete patches - follow up r111155
Modified paths:
  • /trunk/extensions/EducationProgram/EducationProgram.hooks.php (modified) (history)
  • /trunk/extensions/EducationProgram/EducationProgram.php (modified) (history)
  • /trunk/extensions/EducationProgram/sql/AddAmbassadorLinks.sql (deleted) (history)
  • /trunk/extensions/EducationProgram/sql/RenameAmbUserField.sql (deleted) (history)

Diff [purge]

Index: trunk/extensions/EducationProgram/EducationProgram.php
@@ -159,9 +159,7 @@
160160 $egEPDBObjects['EPOA'] = array( 'table' => 'ep_oas', 'prefix' => 'oa_' );
161161 $egEPDBObjects['EPCA'] = array( 'table' => 'ep_cas', 'prefix' => 'ca_' );
162162 $egEPDBObjects['EPArticle'] = array( 'table' => 'ep_articles', 'prefix' => 'article_' );
163 -$egEPDBObjects[] = array( 'table' => 'ep_students_per_course', 'prefix' => 'spc_' );
164 -$egEPDBObjects[] = array( 'table' => 'ep_oas_per_course', 'prefix' => 'opc_' );
165 -$egEPDBObjects[] = array( 'table' => 'ep_cas_per_course', 'prefix' => 'cpc_' );
 163+$egEPDBObjects[] = array( 'table' => 'ep_users_per_course', 'prefix' => 'upc_' );
166164
167165 // API
168166 $wgAPIModules['deleteeducation'] = 'ApiDeleteEducation';
Index: trunk/extensions/EducationProgram/sql/AddAmbassadorLinks.sql
@@ -1,22 +0,0 @@
2 -
3 -
4 -CREATE TABLE IF NOT EXISTS /*_*/ep_cas_per_course (
5 - cpc_ca_id INT unsigned NOT NULL, -- Foreign key on ep_cas.ca_id
6 - cpc_course_id INT unsigned NOT NULL -- Foreign key on ep_course.course_id
7 -) /*$wgDBTableOptions*/;
8 -
9 -CREATE UNIQUE INDEX /*i*/ep_cas_per_course ON /*_*/ep_cas_per_course (cpc_ca_id, cpc_course_id);
10 -
11 -CREATE TABLE IF NOT EXISTS /*_*/ep_oas_per_course (
12 - opc_oa_id INT unsigned NOT NULL, -- Foreign key on ep_oas.oa_id
13 - opc_course_id INT unsigned NOT NULL -- Foreign key on ep_course.course_id
14 -) /*$wgDBTableOptions*/;
15 -
16 -CREATE UNIQUE INDEX /*i*/ep_oas_per_course ON /*_*/ep_oas_per_course (opc_oa_id, opc_course_id);
\ No newline at end of file
Index: trunk/extensions/EducationProgram/sql/RenameAmbUserField.sql
@@ -1,6 +0,0 @@
2 -
3 -ALTER TABLE /*_*/ep_cas_per_course CHANGE `cpc_ca_id` `cpc_user_id` INT( 10 ) UNSIGNED NOT NULL;
4 -ALTER TABLE /*_*/ep_oas_per_course CHANGE `opc_oa_id` `opc_user_id` INT( 10 ) UNSIGNED NOT NULL;
\ No newline at end of file
Index: trunk/extensions/EducationProgram/EducationProgram.hooks.php
@@ -30,22 +30,7 @@
3131 );
3232
3333 $updater->addExtensionUpdate( array(
34 - 'addTable',
35 - 'ep_oas_per_course',
36 - dirname( __FILE__ ) . '/sql/AddAmbassadorLinks.sql',
37 - true
38 - ) );
39 -
40 - $updater->addExtensionUpdate( array(
4134 'addField',
42 - 'ep_oas_per_course',
43 - 'opc_user_id',
44 - dirname( __FILE__ ) . '/sql/RenameAmbUserField.sql',
45 - true
46 - ) );
47 -
48 - $updater->addExtensionUpdate( array(
49 - 'addField',
5035 'ep_revisions',
5136 'rev_object_identifier',
5237 dirname( __FILE__ ) . '/sql/AddRevIdentifier.sql',

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r111155schema updatejeroendedauw13:39, 10 February 2012

Status & tagging log