Page MenuHomePhorge

20140205.cal.3.phid-mig.php
No OneTemporary

Size
475 B
Referenced Files
None
Subscribers
None

20140205.cal.3.phid-mig.php

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

File Metadata

Mime Type
text/x-php
Expires
Tue, Jun 17, 2:25 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
224464
Default Alt Text
20140205.cal.3.phid-mig.php (475 B)

Event Timeline