Page MenuHomePhorge

20180306.opath.02.digestpopulate.php
No OneTemporary

Size
402 B
Referenced Files
None
Subscribers
None

20180306.opath.02.digestpopulate.php

<?php
$table = new PhabricatorOwnersPath();
$conn = $table->establishConnection('w');
foreach (new LiskMigrationIterator($table) as $path) {
$index = PhabricatorHash::digestForIndex($path->getPath());
if ($index === $path->getPathIndex()) {
continue;
}
queryfx(
$conn,
'UPDATE %T SET pathIndex = %s WHERE id = %d',
$table->getTableName(),
$index,
$path->getID());
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Jul 2, 9:23 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
295877
Default Alt Text
20180306.opath.02.digestpopulate.php (402 B)

Event Timeline