mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 01:10:58 +01:00
19 lines
417 B
PHP
19 lines
417 B
PHP
|
<?php
|
||
|
|
||
|
$table = new PhabricatorProject();
|
||
|
$conn_w = $table->establishConnection('w');
|
||
|
$iterator = new LiskMigrationIterator($table);
|
||
|
foreach ($iterator as $project) {
|
||
|
$id = $project->getID();
|
||
|
|
||
|
echo pht('Adding mail key for project %d...', $id);
|
||
|
echo "\n";
|
||
|
|
||
|
queryfx(
|
||
|
$conn_w,
|
||
|
'UPDATE %T SET mailKey = %s WHERE id = %d',
|
||
|
$table->getTableName(),
|
||
|
Filesystem::readRandomCharacters(20),
|
||
|
$id);
|
||
|
}
|