mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +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());
|
||
|
}
|