mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 07:12:41 +01:00
19 lines
361 B
PHP
19 lines
361 B
PHP
|
<?php
|
||
|
|
||
|
$table = new PhabricatorAuthSession();
|
||
|
$iterator = new LiskMigrationIterator($table);
|
||
|
$conn = $table->establishConnection('w');
|
||
|
|
||
|
foreach ($iterator as $session) {
|
||
|
if (strlen($session->getPHID())) {
|
||
|
continue;
|
||
|
}
|
||
|
|
||
|
queryfx(
|
||
|
$conn,
|
||
|
'UPDATE %R SET phid = %s WHERE id = %d',
|
||
|
$table,
|
||
|
$session->generatePHID(),
|
||
|
$session->getID());
|
||
|
}
|