Changeset View
Changeset View
Standalone View
Standalone View
resources/sql/patches/20130802.heraldphids.php
Show All 11 Lines | foreach (new LiskMigrationIterator(new HeraldRule()) as $rule) { | ||||
if ($rule->getPHID()) { | if ($rule->getPHID()) { | ||||
continue; | continue; | ||||
} | } | ||||
queryfx( | queryfx( | ||||
$conn_w, | $conn_w, | ||||
'UPDATE %T SET phid = %s WHERE id = %d', | 'UPDATE %T SET phid = %s WHERE id = %d', | ||||
$table->getTableName(), | $table->getTableName(), | ||||
PhabricatorPHID::generateNewPHID(HeraldPHIDTypeRule::TYPECONST), | PhabricatorPHID::generateNewPHID(HeraldRulePHIDType::TYPECONST), | ||||
$rule->getID()); | $rule->getID()); | ||||
} | } | ||||
echo "Done.\n"; | echo "Done.\n"; |