Index: trunk/extensions/EducationProgram/EducationProgram.php |
— | — | @@ -159,9 +159,7 @@ |
160 | 160 | $egEPDBObjects['EPOA'] = array( 'table' => 'ep_oas', 'prefix' => 'oa_' ); |
161 | 161 | $egEPDBObjects['EPCA'] = array( 'table' => 'ep_cas', 'prefix' => 'ca_' ); |
162 | 162 | $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_' ); |
166 | 164 | |
167 | 165 | // API |
168 | 166 | $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 @@ |
31 | 31 | ); |
32 | 32 | |
33 | 33 | $updater->addExtensionUpdate( array( |
34 | | - 'addTable', |
35 | | - 'ep_oas_per_course', |
36 | | - dirname( __FILE__ ) . '/sql/AddAmbassadorLinks.sql', |
37 | | - true |
38 | | - ) ); |
39 | | - |
40 | | - $updater->addExtensionUpdate( array( |
41 | 34 | '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', |
50 | 35 | 'ep_revisions', |
51 | 36 | 'rev_object_identifier', |
52 | 37 | dirname( __FILE__ ) . '/sql/AddRevIdentifier.sql', |