From e8ee801e019af327f33b1f1bbe041d84ec7b0eba Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Wed, 2 May 2007 18:10:05 +0000 Subject: [PATCH] No need to check wgDBtype here: already branched at do_all_updates() --- maintenance/updaters.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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..."; -- 2.20.1