Page MenuHomestyx hydra

No OneTemporary

diff --git a/resources/sql/autopatches/20180214.harbor.01.aborted.php b/resources/sql/autopatches/20180214.harbor.01.aborted.php
index 689d5625f5..365f375dc6 100644
--- a/resources/sql/autopatches/20180214.harbor.01.aborted.php
+++ b/resources/sql/autopatches/20180214.harbor.01.aborted.php
@@ -1,27 +1,28 @@
<?php
$table = new HarbormasterBuildable();
$conn = $table->establishConnection('w');
foreach (new LiskMigrationIterator($table) as $buildable) {
if ($buildable->getBuildableStatus() !== 'building') {
continue;
}
$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');
if (!$aborted) {
continue;
}
queryfx(
$conn,
'UPDATE %T SET buildableStatus = %s WHERE id = %d',
$table->getTableName(),
'failed',
$buildable->getID());
}

File Metadata

Mime Type
text/x-diff
Expires
Fri, Mar 14, 5:51 AM (2 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
71610
Default Alt Text
(1 KB)

Event Timeline