Index: trunk/extensions/UsabilityInitiative/OptIn/OptIn.patch.ois_type.sql |
— | — | @@ -0,0 +1,5 @@ |
| 2 | +-- |
| 3 | +-- Schema patch for OptIn |
| 4 | +-- |
| 5 | + |
| 6 | +ALTER TABLE /*_*/optin_survey add column ois_type varchar(16) NOT NULL; |
\ No newline at end of file |
Index: trunk/extensions/UsabilityInitiative/OptIn/OptIn.hooks.php |
— | — | @@ -10,12 +10,18 @@ |
11 | 11 | |
12 | 12 | /* Static Functions */ |
13 | 13 | public static function schema() { |
14 | | - global $wgExtNewTables; |
| 14 | + global $wgExtNewTables, $wgExtNewFields; |
15 | 15 | |
16 | 16 | $wgExtNewTables[] = array( |
17 | 17 | 'optin_survey', |
18 | 18 | dirname( __FILE__ ) . '/OptIn.sql' |
19 | 19 | ); |
| 20 | + $wgExtNewFields[] = array( |
| 21 | + 'optin_survey', |
| 22 | + 'ois_type', |
| 23 | + dirname( __FILE__ ) . '/OptIn.patch.ois_type.sql' |
| 24 | + ); |
| 25 | + |
20 | 26 | return true; |
21 | 27 | } |
22 | 28 | |
— | — | @@ -71,4 +77,4 @@ |
72 | 78 | $personal_urls = array_merge( $addLinks, $personal_urls ); |
73 | 79 | return true; |
74 | 80 | } |
75 | | -} |
| 81 | +} |
\ No newline at end of file |