Page MenuHomec4science

20130711.pholioimageobsolete.php
No OneTemporary

File Metadata

Created
Tue, Nov 26, 08:08

20130711.pholioimageobsolete.php

<?php
echo pht('Giving Pholio images PHIDs');
$table = new PholioImage();
$table->openTransaction();
foreach (new LiskMigrationIterator($table) as $image) {
if ($image->getPHID()) {
continue;
}
echo '.';
queryfx(
$image->establishConnection('w'),
'UPDATE %T SET phid = %s WHERE id = %d',
$image->getTableName(),
$image->generatePHID(),
$image->getID());
}
$table->saveTransaction();
echo "\n".pht('Done.')."\n";

Event Timeline