Page MenuHomePhorge

20180120.auth.04.vcsphid.php
No OneTemporary

Size
572 B
Referenced Files
None
Subscribers
None

20180120.auth.04.vcsphid.php

<?php
// Populate VCS passwords (which we copied from the old "VCS Password" 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, Sep 16, 11:26 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
445983
Default Alt Text
20180120.auth.04.vcsphid.php (572 B)

Event Timeline