@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
3final class HeraldSchemaSpec extends PhabricatorConfigSchemaSpec {
4
5 public function buildSchemata() {
6 $this->buildRawSchema(
7 id(new HeraldRule())->getApplicationName(),
8 HeraldRule::TABLE_RULE_APPLIED,
9 array(
10 'ruleID' => 'id',
11 'phid' => 'phid',
12 ),
13 array(
14 'PRIMARY' => array(
15 'columns' => array('ruleID', 'phid'),
16 'unique' => true,
17 ),
18 'phid' => array(
19 'columns' => array('phid'),
20 ),
21 ));
22
23 $this->buildRawSchema(
24 id(new HeraldRule())->getApplicationName(),
25 HeraldTranscript::TABLE_SAVED_HEADER,
26 array(
27 'phid' => 'phid',
28 'header' => 'text',
29 ),
30 array(
31 'PRIMARY' => array(
32 'columns' => array('phid'),
33 'unique' => true,
34 ),
35 ));
36 $this->buildEdgeSchemata(new HeraldRule());
37 }
38
39}