From: Brad Jorsch Date: Tue, 14 Nov 2017 17:53:02 +0000 (-0500) Subject: PostgreSQL: Use correct PK name so patch-site_stats-pk.sql isn't run when not needed X-Git-Tag: 1.31.0-rc.0~1525 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=f1bbd1ad401dfcb837e93ccf473345eecbcab3db;p=lhc%2Fweb%2Fwiklou.git 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 --- 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' ], ]; }