Page MenuHomePhorge

20151106.phame.post.mailkey.2.php
No OneTemporary

Size
399 B
Referenced Files
None
Subscribers
None

20151106.phame.post.mailkey.2.php

<?php
$table = new PhamePost();
$conn_w = $table->establishConnection('w');
$iterator = new LiskMigrationIterator($table);
foreach ($iterator as $post) {
$id = $post->getID();
echo pht('Adding mail key for Post %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
Mon, Jun 16, 7:42 PM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
220219
Default Alt Text
20151106.phame.post.mailkey.2.php (399 B)

Event Timeline