Page MenuHomePhorge

20180121.auth.04.accountphid.php
No OneTemporary

Size
562 B
Referenced Files
None
Subscribers
None

20180121.auth.04.accountphid.php

<?php
// Populate account passwords (which we copied from the user table in the last
// migration) with new PHIDs.
$table = new PhabricatorAuthPassword();
$conn = $table->establishConnection('w');
$password_type = PhabricatorAuthPasswordPHIDType::TYPECONST;
foreach (new LiskMigrationIterator($table) as $row) {
if (phid_get_type($row->getPHID()) == $password_type) {
continue;
}
$new_phid = $row->generatePHID();
queryfx(
$conn,
'UPDATE %T SET phid = %s WHERE id = %d',
$table->getTableName(),
$new_phid,
$row->getID());
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Jun 17, 11:48 PM (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
230272
Default Alt Text
20180121.auth.04.accountphid.php (562 B)

Event Timeline