Page MenuHomestyx hydra

20140113.legalpadsig.2.php
No OneTemporary

20140113.legalpadsig.2.php

<?php
echo "Adding secretkeys to legalpad document signatures.\n";
$table = new LegalpadDocumentSignature();
$conn_w = $table->establishConnection('w');
$iterator = new LiskMigrationIterator($table);
foreach ($iterator as $sig) {
$id = $sig->getID();
echo "Populating signature {$id}...\n";
if (!$sig->getSecretKey()) {
queryfx(
$conn_w,
'UPDATE %T SET secretKey = %s WHERE id = %d',
$table->getTableName(),
Filesystem::readRandomCharacters(20),
$id);
}
}
echo "Done.\n";

File Metadata

Mime Type
text/x-php
Expires
Thu, Jan 15, 2:02 AM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
611806
Default Alt Text
20140113.legalpadsig.2.php (519 B)

Event Timeline