Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/infrastructure/storage/schema/PhabricatorStorageSchemaSpec.php
12241 views
1
<?php
2
3
final class PhabricatorStorageSchemaSpec
4
extends PhabricatorConfigSchemaSpec {
5
6
public function buildSchemata() {
7
$this->buildRawSchema(
8
'meta_data',
9
'patch_status',
10
array(
11
'patch' => 'text128',
12
'applied' => 'uint32',
13
'duration' => 'uint64?',
14
),
15
array(
16
'PRIMARY' => array(
17
'columns' => array('patch'),
18
'unique' => true,
19
),
20
));
21
22
$this->buildRawSchema(
23
'meta_data',
24
PhabricatorStorageManagementAPI::TABLE_HOSTSTATE,
25
array(
26
'stateKey' => 'text128',
27
'stateValue' => 'text',
28
),
29
array(
30
'PRIMARY' => array(
31
'columns' => array('stateKey'),
32
'unique' => true,
33
),
34
));
35
}
36
37
}
38
39