X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FPostgresUpdater.php;h=790fbe7b3113ba719489f33e53a8f212becf8c71;hb=b74e81ab6b3bdfaf67eb5d13f3f2e662d5ceb11a;hp=a3b50ac565bedf0ba9f3e0f9b4bc5aea5ed27015;hpb=e5facc46bc170c302438f60849041b0d6be75e82;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/PostgresUpdater.php b/includes/installer/PostgresUpdater.php index a3b50ac565..790fbe7b31 100644 --- a/includes/installer/PostgresUpdater.php +++ b/includes/installer/PostgresUpdater.php @@ -68,6 +68,8 @@ class PostgresUpdater extends DatabaseUpdater { [ 'addSequence', 'archive', false, 'archive_ar_id_seq' ], [ 'addSequence', 'externallinks', false, 'externallinks_el_id_seq' ], [ 'addSequence', 'watchlist', false, 'watchlist_wl_id_seq' ], + [ 'addSequence', 'change_tag', false, 'change_tag_ct_id_seq' ], + [ 'addSequence', 'tag_summary', false, 'tag_summary_ts_id_seq' ], # new tables [ 'addTable', 'category', 'patch-category.sql' ], @@ -433,6 +435,14 @@ class PostgresUpdater extends DatabaseUpdater { 'addPgField', 'watchlist', 'wl_id', "INTEGER NOT NULL PRIMARY KEY DEFAULT nextval('watchlist_wl_id_seq')" ], + + // 1.28 + [ 'addPgIndex', 'recentchanges', 'rc_name_type_patrolled_timestamp', + '( rc_namespace, rc_type, rc_patrolled, rc_timestamp )' ], + [ 'addPgField', 'change_tag', 'ct_id', + "INTEGER NOT NULL PRIMARY KEY DEFAULT nextval('change_tag_ct_id_seq')" ], + [ 'addPgField', 'tag_summary', 'ts_id', + "INTEGER NOT NULL PRIMARY KEY DEFAULT nextval('tag_summary_ts_id_seq')" ], ]; } @@ -965,7 +975,7 @@ END; protected function rebuildTextSearch() { if ( $this->updateRowExists( 'patch-textsearch_bug66650.sql' ) ) { $this->output( "...bug 66650 already fixed or not applicable.\n" ); - return true; + return; }; $this->applyPatch( 'patch-textsearch_bug66650.sql', false, 'Rebuilding text search for bug 66650' );