mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-29 08:50:58 +01:00
c3ecea9788
Summary: Add some mailkeys, allow feed stories to be published. Test Plan: New Blog, Edit Blog Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D14434
18 lines
399 B
PHP
18 lines
399 B
PHP
<?php
|
|
|
|
$table = new PhameBlog();
|
|
$conn_w = $table->establishConnection('w');
|
|
$iterator = new LiskMigrationIterator($table);
|
|
foreach ($iterator as $blog) {
|
|
$id = $blog->getID();
|
|
|
|
echo pht('Adding mail key for Blog %d...', $id);
|
|
echo "\n";
|
|
|
|
queryfx(
|
|
$conn_w,
|
|
'UPDATE %T SET mailKey = %s WHERE id = %d',
|
|
$table->getTableName(),
|
|
Filesystem::readRandomCharacters(20),
|
|
$id);
|
|
}
|