From ec3a6757a84246e0af14eaf944bc7f515766db8c Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 27 Mar 2005 16:02:15 +0000 Subject: [PATCH] quick hack to fix one installation problem, still plenty left --- maintenance/updaters.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/maintenance/updaters.inc b/maintenance/updaters.inc index a8aab81a0a..6bd12a4fef 100644 --- a/maintenance/updaters.inc +++ b/maintenance/updaters.inc @@ -18,7 +18,7 @@ $wgNewTables = array( array( 'categorylinks', 'patch-categorylinks.sql' ), array( 'logging', 'patch-logging.sql' ), array( 'user_rights', 'patch-user_rights.sql' ), - array( 'user_groups', 'patch-userlevels.sql' ), + array( 'group', 'patch-userlevels.sql' ), ); $wgNewFields = array( @@ -51,7 +51,9 @@ function add_table( $name, $patch ) { function add_field( $table, $field, $patch ) { global $wgDatabase; - if ( $wgDatabase->fieldExists( $table, $field ) ) { + if ( !$wgDatabase->tableExists( $table ) ) { + echo "...$table table does not exist, skipping new field patch\n"; + } elseif ( $wgDatabase->fieldExists( $table, $field ) ) { echo "...have $field field in $table table.\n"; } else { echo "Adding $field field to table $table..."; -- 2.20.1