mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-25 06:50:55 +01:00
36e2d02d6e
Summary: `pht`ize a whole bunch of strings in rP. Test Plan: Intense eyeballing. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: hach-que, Korvin, epriestley Differential Revision: https://secure.phabricator.com/D12797
22 lines
645 B
PHP
22 lines
645 B
PHP
<?php
|
|
|
|
$conn_w = id(new DifferentialRevision())->establishConnection('w');
|
|
$rows = new LiskRawMigrationIterator($conn_w, 'differential_auxiliaryfield');
|
|
|
|
echo pht('Modernizing Differential auxiliary field storage...')."\n";
|
|
|
|
$table_name = id(new DifferentialCustomFieldStorage())->getTableName();
|
|
foreach ($rows as $row) {
|
|
$id = $row['id'];
|
|
echo pht('Migrating row %d...', $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 pht('Done.')."\n";
|