From: Greg Sabino Mullane Date: Wed, 2 May 2007 18:10:05 +0000 (+0000) Subject: No need to check wgDBtype here: already branched at do_all_updates() X-Git-Tag: 1.31.0-rc.0~53117 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=e8ee801e019af327f33b1f1bbe041d84ec7b0eba;p=lhc%2Fweb%2Fwiklou.git No need to check wgDBtype here: already branched at do_all_updates() --- diff --git a/maintenance/updaters.inc b/maintenance/updaters.inc index ff36875a37..b3fb16f413 100644 --- a/maintenance/updaters.inc +++ b/maintenance/updaters.inc @@ -960,7 +960,7 @@ function do_restrictions_update() { # Migrating old restrictions to new table # -- Andrew Garrett, January 2007. - global $wgDatabase, $wgDBtype; + global $wgDatabase; $name = 'page_restrictions'; $patch = 'patch-page_restrictions.sql'; @@ -971,8 +971,7 @@ function do_restrictions_update() { } else { echo "Creating $name table..."; dbsource( archive($patch), $wgDatabase ); - if ( $wgDBtype !="postgres" ) - dbsource( archive($patch2), $wgDatabase ); + dbsource( archive($patch2), $wgDatabase ); echo "ok\n"; echo "Migrating old restrictions to new table...";