Magic links, etc.
[lhc/web/wiklou.git] / maintenance / updaters.inc
index 54b3f04..ee64362 100644 (file)
@@ -1,5 +1,10 @@
 <?php
-
+/**
+ * @package MediaWiki
+ * @subpackage Maintenance
+ */
+ /** */
 function do_revision_updates() {
        global $wgSoftwareRevision;
        if ( $wgSoftwareRevision < 1001 ) {
@@ -57,7 +62,7 @@ function do_ipblocks_update() {
        } else {
                echo "...ipblocks is up to date.\n";
        }
-       
+
 }
 
 
@@ -209,7 +214,7 @@ function do_image_name_unique_update() {
 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 );
@@ -217,4 +222,15 @@ function do_logging_update() {
        }
 }
 
+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";
+       }
+}
+
 ?>