1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 16:22:43 +01:00

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 cb2f710606
commit eb3fd2b7f5

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');