Table page_props needed in tests after all.
[lhc/web/wiklou.git] / maintenance / updaters.inc
index 15a578e..86e8701 100644 (file)
@@ -39,6 +39,7 @@ $wgNewTables = array(
        array( 'querycachetwo',    'patch-querycachetwo.sql' ),
        array( 'redirect',         'patch-redirect.sql' ),
        array( 'protected_titles', 'patch-protected_titles.sql' ),
+       array( 'page_props',       'patch-page_props.sql' ),
 );
 
 $wgNewFields = array(
@@ -1328,6 +1329,7 @@ function do_postgres_updates() {
                array("mwuser",            "patch-mwuser.sql"),
                array("pagecontent",       "patch-pagecontent.sql"),
                array("querycachetwo",     "patch-querycachetwo.sql"),
+               array("page_props",        "patch-page_props.sql"),
                array("page_restrictions", "patch-page_restrictions.sql"),
                array("profiling",         "patch-profiling.sql"),
                array("protected_titles",  "patch-protected_titles.sql"),
@@ -1608,7 +1610,12 @@ function do_postgres_updates() {
 
        # Tweak the page_title tsearch2 trigger to filter out slashes
        # This is create or replace, so harmless to call if not needed
-       dbsource(archive("patch-ts2pagetitle.sql"));
+       dbsource(archive('patch-ts2pagetitle.sql'));
+
+       ## If the server is 8.3 or higher, rewrite teh tsearch2 triggers
+       ## in case they have the old 'default' versions
+       if ( $numver >= 8.3 )
+               dbsource(archive('patch-tsearch2funcs.sql'));
 
        return;
 }