Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/herald/storage/HeraldSchemaSpec.php
12256 views
1
<?php
2
3
final 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
}
40
41