mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
20 lines
402 B
PHP
20 lines
402 B
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());
|
||
|
}
|