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:
		@@ -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');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user