Index: trunk/extensions/MultilingualLiquidThreads/LiquidThreads/migrateDatabase.php |
— | — | @@ -34,19 +34,19 @@ |
35 | 35 | |
36 | 36 | foreach ( $threadFieldUpdates as $field => $patch ) { |
37 | 37 | if ( !$db->fieldExists( 'thread', $field, 'lqt-update-script' ) ) { |
38 | | - dbsource( dirname( __FILE__ ) . '/schema-changes/' . $patch ); |
| 38 | + $db->sourceFile( dirname( __FILE__ ) . '/schema-changes/' . $patch ); |
39 | 39 | } |
40 | 40 | } |
41 | 41 | |
42 | 42 | foreach ( $threadIndexUpdates as $index => $patch ) { |
43 | 43 | if ( !$db->indexExists( 'thread', $index, 'lqt-update-script' ) ) { |
44 | | - dbsource( dirname( __FILE__ ) . '/schema-changes/' . $patch ); |
| 44 | + $db->sourceFile( dirname( __FILE__ ) . '/schema-changes/' . $patch ); |
45 | 45 | } |
46 | 46 | } |
47 | 47 | |
48 | 48 | foreach ( $newTableUpdates as $table => $patch ) { |
49 | 49 | if ( !$db->tableExists( $table, 'lqt-update-script' ) ) { |
50 | | - dbsource( dirname( __FILE__ ) . '/schema-changes/' . $patch ); |
| 50 | + $db->sourceFile( dirname( __FILE__ ) . '/schema-changes/' . $patch ); |
51 | 51 | } |
52 | 52 | } |
53 | 53 | |
Index: trunk/extensions/LiquidThreads/migrateDatabase.php |
— | — | @@ -34,19 +34,19 @@ |
35 | 35 | |
36 | 36 | foreach ( $threadFieldUpdates as $field => $patch ) { |
37 | 37 | if ( !$db->fieldExists( 'thread', $field, 'lqt-update-script' ) ) { |
38 | | - dbsource( dirname( __FILE__ ) . '/schema-changes/' . $patch ); |
| 38 | + $db->sourceFile( dirname( __FILE__ ) . '/schema-changes/' . $patch ); |
39 | 39 | } |
40 | 40 | } |
41 | 41 | |
42 | 42 | foreach ( $threadIndexUpdates as $index => $patch ) { |
43 | 43 | if ( !$db->indexExists( 'thread', $index, 'lqt-update-script' ) ) { |
44 | | - dbsource( dirname( __FILE__ ) . '/schema-changes/' . $patch ); |
| 44 | + $db->sourceFile( dirname( __FILE__ ) . '/schema-changes/' . $patch ); |
45 | 45 | } |
46 | 46 | } |
47 | 47 | |
48 | 48 | foreach ( $newTableUpdates as $table => $patch ) { |
49 | 49 | if ( !$db->tableExists( $table, 'lqt-update-script' ) ) { |
50 | | - dbsource( dirname( __FILE__ ) . '/schema-changes/' . $patch ); |
| 50 | + $db->sourceFile( dirname( __FILE__ ) . '/schema-changes/' . $patch ); |
51 | 51 | } |
52 | 52 | } |
53 | 53 | |
Index: trunk/extensions/MetavidWiki/maintenance/mv_update.php |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | $wgDatabase = new $dbclass( $wgDBserver, $wgDBadminuser, $wgDBadminpassword, $wgDBname, 1 ); |
15 | 15 | |
16 | 16 | //first run the mv_tables.sql |
17 | | -dbsource('mv_tables.sql'); |
| 17 | +$wgDatabase->sourceFile( 'mv_tables.sql' ); |
18 | 18 | |
19 | 19 | // do mvd_index text removal update: |
20 | 20 | // check if mvd_index has text field |
Index: trunk/extensions/MetavidWiki/includes/specials/MV_SpecialMVAdmin.php |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | require_once( "$IP/install-utils.inc" ); |
75 | 75 | |
76 | 76 | print '<p><b>Creating database tables</b><p><pre>'; |
77 | | - dbsource( "extensions/MetavidWiki/maintenance/mv_tables.sql" ); |
| 77 | + wfGetDB( DB_MASTER )->sourceFile( "extensions/MetavidWiki/maintenance/mv_tables.sql" ); |
78 | 78 | |
79 | 79 | print '</p><p><b>Creating templates</b><pre>'; |
80 | 80 | upTemplates( false ); |
Index: trunk/extensions/AbuseFilter/install.php |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | if ( $wgDBtype == 'postgres' ) |
13 | 13 | $sqlfile = '/abusefilter.tables.pg.sql'; |
14 | 14 | |
15 | | -dbsource( dirname( __FILE__ ) . $sqlfile ); |
| 15 | +wfGetDB( DB_MASTER )->sourceFile( dirname( __FILE__ ) . $sqlfile ); |
16 | 16 | |
17 | 17 | // Create the Abuse Filter user. |
18 | 18 | wfLoadExtensionMessages( 'AbuseFilter' ); |