<?php
-
+/**
+ * @package MediaWiki
+ * @subpackage Maintenance
+ */
+
+ /** */
function do_revision_updates() {
global $wgSoftwareRevision;
if ( $wgSoftwareRevision < 1001 ) {
} else {
echo "...ipblocks is up to date.\n";
}
-
+
}
function do_logging_update() {
global $wgDatabase;
if ( $wgDatabase->tableExists( 'logging' ) ) {
- echo "...logging table already unique.\n";
+ echo "...logging table already exists.\n";
} else {
echo "Creating logging table and adjusting recentchanges... ";
dbsource( "maintenance/archives/patch-logging.sql", $wgDatabase );
}
}
+function do_user_rights_update() {
+ global $wgDatabase;
+ if ( $wgDatabase->tableExists( 'user_rights' ) ) {
+ echo "...user_rights table already exists.\n";
+ } else {
+ echo 'Creating user rights table...';
+ dbsource( 'maintenance/archives/patch-user_rights.sql', $wgDatabase );
+ echo "ok\n";
+ }
+}
+
?>