Page MenuHomePhorge

20131217.pushlogphid.2.mig.php
No OneTemporary

20131217.pushlogphid.2.mig.php

<?php
$table = new PhabricatorRepositoryPushLog();
$conn_w = $table->establishConnection('w');
echo pht('Assigning PHIDs to push logs...')."\n";
$logs = new LiskMigrationIterator($table);
foreach ($logs as $log) {
$id = $log->getID();
echo pht('Updating %s...', $id)."\n";
queryfx(
$conn_w,
'UPDATE %T SET phid = %s WHERE id = %d',
$table->getTableName(),
$log->generatePHID(),
$id);
}
echo pht('Done.')."\n";

File Metadata

Mime Type
text/x-php
Expires
Jan 19 2025, 22:09 (6 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1129258
Default Alt Text
20131217.pushlogphid.2.mig.php (440 B)

Event Timeline