r21808 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r21807‎ | r21808 | r21809 >
Date:18:10, 2 May 2007
Author:greg
Status:old
Tags:
Comment:
No need to check wgDBtype here: already branched at do_all_updates()
Modified paths:
  • /trunk/phase3/maintenance/updaters.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/updaters.inc
@@ -960,7 +960,7 @@
961961 # Migrating old restrictions to new table
962962 # -- Andrew Garrett, January 2007.
963963
964 - global $wgDatabase, $wgDBtype;
 964+ global $wgDatabase;
965965
966966 $name = 'page_restrictions';
967967 $patch = 'patch-page_restrictions.sql';
@@ -971,8 +971,7 @@
972972 } else {
973973 echo "Creating $name table...";
974974 dbsource( archive($patch), $wgDatabase );
975 - if ( $wgDBtype !="postgres" )
976 - dbsource( archive($patch2), $wgDatabase );
 975+ dbsource( archive($patch2), $wgDatabase );
977976 echo "ok\n";
978977
979978 echo "Migrating old restrictions to new table...";

Follow-up revisions

RevisionCommit summaryAuthorDate
r21812Merge from trunk r21803, r21806, r21808: page_restrictions table setup fixbrion18:50, 2 May 2007