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