Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / resources / sql / autopatches / 20140226.dxcustom.1.fielddata.php
blob9b1382f5b9ba87db5d0a4b6d09766d1959f008b8
1 <?php
3 $conn_w = id(new DifferentialRevision())->establishConnection('w');
4 $rows = new LiskRawMigrationIterator($conn_w, 'differential_auxiliaryfield');
6 echo pht('Modernizing Differential auxiliary field storage...')."\n";
8 $table_name = id(new DifferentialCustomFieldStorage())->getTableName();
9 foreach ($rows as $row) {
10 $id = $row['id'];
11 echo pht('Migrating row %d...', $id)."\n";
12 queryfx(
13 $conn_w,
14 'INSERT IGNORE INTO %T (objectPHID, fieldIndex, fieldValue)
15 VALUES (%s, %s, %s)',
16 $table_name,
17 $row['revisionPHID'],
18 PhabricatorHash::digestForIndex($row['name']),
19 $row['value']);
22 echo pht('Done.')."\n";