@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3$table = new PhabricatorRepositoryCommit();
4$conn = $table->establishConnection('w');
5
6$status_map = array(
7 0 => 'none',
8 1 => 'needs-audit',
9 2 => 'concern-raised',
10 3 => 'partially-audited',
11 4 => 'audited',
12 5 => 'needs-verification',
13);
14
15foreach ($status_map as $old_status => $new_status) {
16 queryfx(
17 $conn,
18 'UPDATE %R SET auditStatus = %s WHERE auditStatus = %s',
19 $table,
20 $new_status,
21 $old_status);
22}