Page MenuHomePhorge

20140226.dxcustom.1.fielddata.php
No OneTemporary

Size
619 B
Referenced Files
None
Subscribers
None

20140226.dxcustom.1.fielddata.php

<?php
$conn_w = id(new DifferentialRevision())->establishConnection('w');
$rows = new LiskRawMigrationIterator($conn_w, 'differential_auxiliaryfield');
echo "Modernizing Differential auxiliary field storage...\n";
$table_name = id(new DifferentialCustomFieldStorage())->getTableName();
foreach ($rows as $row) {
$id = $row['id'];
echo "Migrating row {$id}...\n";
queryfx(
$conn_w,
'INSERT IGNORE INTO %T (objectPHID, fieldIndex, fieldValue)
VALUES (%s, %s, %s)',
$table_name,
$row['revisionPHID'],
PhabricatorHash::digestForIndex($row['name']),
$row['value']);
}
echo "Done.\n";

File Metadata

Mime Type
text/x-php
Expires
Sun, Jun 29, 7:43 PM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
263902
Default Alt Text
20140226.dxcustom.1.fielddata.php (619 B)

Event Timeline