3 final class DifferentialSchemaSpec
extends PhabricatorConfigSchemaSpec
{
5 public function buildSchemata() {
6 $this->buildEdgeSchemata(new DifferentialRevision());
9 id(new DifferentialRevision())->getApplicationName(),
10 DifferentialChangeset
::TABLE_CACHE
,
13 'cacheIndex' => 'bytes12',
15 'dateCreated' => 'epoch',
19 'columns' => array('id'),
22 'key_cacheIndex' => array(
23 'columns' => array('cacheIndex'),
26 'key_created' => array(
27 'columns' => array('dateCreated'),
31 'persistence' => PhabricatorConfigTableSchema
::PERSISTENCE_CACHE
,
34 $this->buildRawSchema(
35 id(new DifferentialRevision())->getApplicationName(),
36 ArcanistDifferentialRevisionHash
::TABLE_NAME
,
44 'columns' => array('type', 'hash'),
46 'revisionID' => array(
47 'columns' => array('revisionID'),