mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 02:32:42 +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
25 lines
674 B
PHP
25 lines
674 B
PHP
<?php
|
|
|
|
$conn_w = id(new ManiphestTask())->establishConnection('w');
|
|
$table_name = id(new ManiphestCustomFieldStorage())->getTableName();
|
|
|
|
$rows = new LiskRawMigrationIterator($conn_w, 'maniphest_taskauxiliarystorage');
|
|
|
|
echo pht('Migrating custom storage for Maniphest fields...')."\n";
|
|
foreach ($rows as $row) {
|
|
$phid = $row['taskPHID'];
|
|
$name = $row['name'];
|
|
|
|
echo pht('Migrating %s / %s...', $phid, $name)."\n";
|
|
|
|
queryfx(
|
|
$conn_w,
|
|
'INSERT IGNORE INTO %T (objectPHID, fieldIndex, fieldValue)
|
|
VALUES (%s, %s, %s)',
|
|
$table_name,
|
|
$phid,
|
|
PhabricatorHash::digestForIndex('std:maniphest:'.$name),
|
|
$row['value']);
|
|
}
|
|
|
|
echo pht('Done.')."\n";
|