Changed default groups to be more like Wikipedia
[lhc/web/wiklou.git] / maintenance / updaters.inc
index 0cab338..a8aab81 100644 (file)
@@ -8,7 +8,6 @@
 
 require_once 'convertLinks.inc';
 require_once 'InitialiseMessages.inc';
-require_once 'archives/moveCustomMessages.inc';
 
 $wgNewTables = array(
 #            table          patch file (in maintenance/archives)
@@ -408,6 +407,18 @@ function do_schema_restructuring() {
        }
 }
 
+function do_inverse_timestamp() {
+       global $wgDatabase;
+       $fname="do_schema_restructuring";
+       if( $wgDatabase->fieldExists( 'revision', 'inverse_timestamp' ) ) {
+               echo "Removing revision.inverse_timestamp and fixing indexes... ";
+               dbsource( 'maintenance/archives/patch-inverse_timestamp.sql', $wgDatabase );
+               echo "ok\n";
+       } else {
+               echo "revision timestamp indexes already up to 2005-03-13\n";
+       }
+}
+
 function do_all_updates() {
        global $wgNewTables, $wgNewFields;
        
@@ -438,14 +449,7 @@ function do_all_updates() {
        do_logging_encoding(); flush();
        
        do_schema_restructuring(); flush();
-
-       if ( isTemplateInitialised() ) {
-               print "Template namespace already initialised\n";
-       } else {
-               moveCustomMessages( 1 ); flush();
-               moveCustomMessages( 2 ); flush();
-               moveCustomMessages( 3 ); flush();
-       }
+       do_inverse_timestamp(); flush();
 
        initialiseMessages(); flush();
 }