Page MenuHomePhorge

20151130.phurl.mailkey.2.php
No OneTemporary

Size
408 B
Referenced Files
None
Subscribers
None

20151130.phurl.mailkey.2.php

<?php
$table = new PhabricatorPhurlURL();
$conn_w = $table->establishConnection('w');
$iterator = new LiskMigrationIterator($table);
foreach ($iterator as $url) {
$id = $url->getID();
echo pht('Adding mail key for Phurl %d...', $id);
echo "\n";
queryfx(
$conn_w,
'UPDATE %T SET mailKey = %s WHERE id = %d',
$table->getTableName(),
Filesystem::readRandomCharacters(20),
$id);
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Jun 17, 7:58 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227499
Default Alt Text
20151130.phurl.mailkey.2.php (408 B)

Event Timeline