Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / differential / storage / DifferentialSchemaSpec.php
blobcf8b996e9764f5ee6c497deffdef1e834ce7cf16
1 <?php
3 final class DifferentialSchemaSpec extends PhabricatorConfigSchemaSpec {
5 public function buildSchemata() {
6 $this->buildEdgeSchemata(new DifferentialRevision());
8 $this->buildRawSchema(
9 id(new DifferentialRevision())->getApplicationName(),
10 DifferentialChangeset::TABLE_CACHE,
11 array(
12 'id' => 'auto',
13 'cacheIndex' => 'bytes12',
14 'cache' => 'bytes',
15 'dateCreated' => 'epoch',
17 array(
18 'PRIMARY' => array(
19 'columns' => array('id'),
20 'unique' => true,
22 'key_cacheIndex' => array(
23 'columns' => array('cacheIndex'),
24 'unique' => true,
26 'key_created' => array(
27 'columns' => array('dateCreated'),
30 array(
31 'persistence' => PhabricatorConfigTableSchema::PERSISTENCE_CACHE,
32 ));
34 $this->buildRawSchema(
35 id(new DifferentialRevision())->getApplicationName(),
36 ArcanistDifferentialRevisionHash::TABLE_NAME,
37 array(
38 'revisionID' => 'id',
39 'type' => 'bytes4',
40 'hash' => 'bytes40',
42 array(
43 'type' => array(
44 'columns' => array('type', 'hash'),
46 'revisionID' => array(
47 'columns' => array('revisionID'),
49 ));