Page MenuHomec4science

20151218.key.2.keyphid.php
No OneTemporary

File Metadata

Created
Wed, Dec 11, 11:10

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