Page MenuHomec4science

20151218.key.2.keyphid.php
No OneTemporary

File Metadata

Created
Wed, Jul 17, 16:09

20151218.key.2.keyphid.php

<?php
$table = new PhabricatorAuthSSHKey();
$conn_w = $table->establishConnection('w');
foreach (new LiskMigrationIterator($table) as $cursor) {
if (strlen($cursor->getPHID())) {
continue;
}
queryfx(
$conn_w,
'UPDATE %T SET phid = %s WHERE id = %d',
$table->getTableName(),
$table->generatePHID(),
$cursor->getID());
}

Event Timeline