Remove leftovers from r35950 (reverted addition of special page Missingfiles) *grumble*
[lhc/web/wiklou.git] / maintenance / updaters.inc
index 63c00c0..cd12da2 100644 (file)
@@ -1484,6 +1484,7 @@ function do_postgres_updates() {
                array("revision",      "rev_deleted",          "SMALLINT NOT NULL DEFAULT 0"),
                array("user_newtalk",  "user_last_timestamp",  "TIMESTAMPTZ"),
                array("site_stats",    "ss_active_users",      "INTEGER DEFAULT '-1'"),
+               array("revision",      "rev_parent_id",        "INTEGER DEFAULT NULL"),
        );
 
 
@@ -1686,7 +1687,7 @@ function do_postgres_updates() {
                $wgDatabase->query("CREATE UNIQUE INDEX pagelink_unique ON pagelinks (pl_from,pl_namespace,pl_title)");
        }
        else
-               echo "... index \"pagelink_unique_index\" aready exists\n";
+               echo "... index \"pagelink_unique_index\" already exists\n";
 
        if (pg_fkey_deltype("revision_rev_user_fkey") == 'r') {
                echo "... constraint \"revision_rev_user_fkey\" is ON DELETE RESTRICT\n";
@@ -1696,6 +1697,14 @@ function do_postgres_updates() {
                dbsource(archive('patch-revision_rev_user_fkey.sql'));
        }
 
+       # Fix ipb_address index
+       if (pg_index_exists('ipblocks', 'ipb_address_unique' )) {
+               echo "... have ipb_address_unique\n";
+       } else {
+               echo "Adding ipb_address_unique index\n";
+               dbsource(archive('patch-ipb_address_unique.sql'));
+       }
+
        global $wgExtNewTables, $wgExtPGNewFields, $wgExtNewIndexes;
        # Add missing extension tables
        foreach ( $wgExtNewTables as $nt ) {