1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-14 17:46:13 +01:00

(stable) Fix an issue with marking aborted buildables failed when more than one build is aborted

Summary: See <https://discourse.phabricator-community.org/t/upgrade-issue-2018-week-7-mid-february/1139>.

Test Plan: Used `bin/storage upgrade -f --apply ...` to re-apply the migration.

Differential Revision: https://secure.phabricator.com/D19116
This commit is contained in:
epriestley 2018-02-17 04:31:16 -08:00
parent a6100a4ce7
commit 362ccedf8a

View file

@ -10,7 +10,8 @@ foreach (new LiskMigrationIterator($table) as $buildable) {
$aborted = queryfx_one(
$conn,
'SELECT * FROM %T WHERE buildablePHID = %s AND buildStatus = %s',
'SELECT * FROM %T WHERE buildablePHID = %s AND buildStatus = %s
LIMIT 1',
id(new HarbormasterBuild())->getTableName(),
$buildable->getPHID(),
'aborted');