Page MenuHomec4science

20180215.phriction.02.phidvalues.php
No OneTemporary

File Metadata

Created
Tue, Jul 23, 03:33

20180215.phriction.02.phidvalues.php

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

Event Timeline