3 $table = new PhabricatorAuditTransaction();
4 $conn = $table->establishConnection('w');
10 3 => 'partially-audited',
12 5 => 'needs-verification',
15 $state_type = DiffusionCommitStateTransaction
::TRANSACTIONTYPE
;
17 foreach (new LiskMigrationIterator($table) as $xaction) {
18 if ($xaction->getTransactionType() !== $state_type) {
22 $old_value = $xaction->getOldValue();
23 $new_value = $xaction->getNewValue();
27 if (isset($status_map[$old_value])) {
28 $old_value = $status_map[$old_value];
32 if (isset($status_map[$new_value])) {
33 $new_value = $status_map[$new_value];
43 'UPDATE %T SET oldValue = %s, newValue = %s WHERE id = %d',
44 $table->getTableName(),
45 phutil_json_encode($old_value),
46 phutil_json_encode($new_value),