Page MenuHomec4science

20121209.xmacromigrate.php
No OneTemporary

File Metadata

Created
Mon, Dec 23, 05:15

20121209.xmacromigrate.php

<?php
echo "Giving image macros PHIDs";
foreach (new LiskMigrationIterator(new PhabricatorFileImageMacro()) as $macro) {
if ($macro->getPHID()) {
continue;
}
echo ".";
queryfx(
$macro->establishConnection('r'),
'UPDATE %T SET phid = %s WHERE id = %d',
$macro->getTableName(),
$macro->generatePHID(),
$macro->getID());
}
echo "\nDone.\n";

Event Timeline