From f1bbd1ad401dfcb837e93ccf473345eecbcab3db Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Tue, 14 Nov 2017 12:53:02 -0500 Subject: [PATCH] PostgreSQL: Use correct PK name so patch-site_stats-pk.sql isn't run when not needed PostgreSQL names this primary key "site_stats_pkey" by default, not "PRIMARY". Bug: T180508 Change-Id: I626e46186376bc2a13157664c3ea6e097fa5e650 --- includes/installer/PostgresUpdater.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/installer/PostgresUpdater.php b/includes/installer/PostgresUpdater.php index 1f17fecc2b..91f569f0be 100644 --- a/includes/installer/PostgresUpdater.php +++ b/includes/installer/PostgresUpdater.php @@ -481,7 +481,7 @@ class PostgresUpdater extends DatabaseUpdater { [ 'changeNullableField', 'protected_titles', 'pt_reason', 'NOT NULL', true ], [ 'addPgField', 'protected_titles', 'pt_reason_id', 'INTEGER NOT NULL DEFAULT 0' ], [ 'addTable', 'comment', 'patch-comment-table.sql' ], - [ 'addIndex', 'site_stats', 'PRIMARY', 'patch-site_stats-pk.sql' ], + [ 'addIndex', 'site_stats', 'site_stats_pkey', 'patch-site_stats-pk.sql' ], ]; } -- 2.20.1