mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 19:32:40 +01:00
da9a61fb70
Summary: Ref T8320. Test Plan: {F437431} Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T8320 Differential Revision: https://secure.phabricator.com/D13028
18 lines
423 B
PHP
18 lines
423 B
PHP
<?php
|
|
|
|
$table = new PhabricatorOwnersPackage();
|
|
$conn_w = $table->establishConnection('w');
|
|
$iterator = new LiskMigrationIterator($table);
|
|
foreach ($iterator as $package) {
|
|
$id = $package->getID();
|
|
|
|
echo pht('Adding mail key for package %d...', $id);
|
|
echo "\n";
|
|
|
|
queryfx(
|
|
$conn_w,
|
|
'UPDATE %T SET mailKey = %s WHERE id = %d',
|
|
$table->getTableName(),
|
|
Filesystem::readRandomCharacters(20),
|
|
$id);
|
|
}
|