Page MenuHomePhorge

20210316.almanac.01.device-mailkey.php
No OneTemporary

Size
682 B
Referenced Files
None
Subscribers
None

20210316.almanac.01.device-mailkey.php

<?php
$device_table = new AlmanacDevice();
$device_conn = $device_table->establishConnection('w');
$properties_table = new PhabricatorMetaMTAMailProperties();
$conn = $properties_table->establishConnection('w');
$iterator = new LiskRawMigrationIterator(
$device_conn,
$device_table->getTableName());
foreach ($iterator as $row) {
queryfx(
$conn,
'INSERT IGNORE INTO %R
(objectPHID, mailProperties, dateCreated, dateModified)
VALUES
(%s, %s, %d, %d)',
$properties_table,
$row['phid'],
phutil_json_encode(
array(
'mailKey' => $row['mailKey'],
)),
PhabricatorTime::getNow(),
PhabricatorTime::getNow());
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Jun 18, 2:07 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
236677
Default Alt Text
20210316.almanac.01.device-mailkey.php (682 B)

Event Timeline