Page MenuHomec4science

20151218.key.2.keyphid.php
No OneTemporary

File Metadata

Created
Sun, Dec 1, 19:50

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