From: Tim Starling Date: Sun, 27 Mar 2005 16:02:15 +0000 (+0000) Subject: quick hack to fix one installation problem, still plenty left X-Git-Tag: 1.5.0alpha1~489 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=ec3a6757a84246e0af14eaf944bc7f515766db8c;p=lhc%2Fweb%2Fwiklou.git quick hack to fix one installation problem, still plenty left --- 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...";