@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
1CREATE TABLE {$NAMESPACE}_herald.herald_action (
2 id int unsigned not null auto_increment primary key,
3 ruleID int unsigned not null,
4 action varchar(255) not null,
5 target text not null
6);
7
8CREATE TABLE {$NAMESPACE}_herald.herald_rule (
9 id int unsigned not null auto_increment primary key,
10 name varchar(255) COLLATE `binary` not null,
11 authorPHID varchar(64) binary not null,
12 contentType varchar(255) not null,
13 mustMatchAll bool not null,
14 configVersion int unsigned not null default '1',
15 dateCreated int unsigned not null,
16 dateModified int unsigned not null,
17 unique key (authorPHID, name)
18);
19
20CREATE TABLE {$NAMESPACE}_herald.herald_condition (
21 id int unsigned not null auto_increment primary key,
22 ruleID int unsigned not null,
23 fieldName varchar(255) not null,
24 fieldCondition varchar(255) not null,
25 value text not null
26);
27
28CREATE TABLE {$NAMESPACE}_herald.herald_transcript (
29 id int unsigned not null auto_increment primary key,
30 phid varchar(64) binary not null,
31 time int unsigned not null,
32 host varchar(255) not null,
33 psth varchar(255) not null,
34 duration float not null,
35 objectPHID varchar(64) binary not null,
36 dryRun bool not null,
37 objectTranscript longblob not null,
38 ruleTranscripts longblob not null,
39 conditionTranscripts longblob not null,
40 applyTranscripts longblob not null,
41 unique key (phid)
42);