Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialSchemaSpec.php
| <?php | <?php | ||||
| final class DifferentialSchemaSpec extends PhabricatorConfigSchemaSpec { | final class DifferentialSchemaSpec extends PhabricatorConfigSchemaSpec { | ||||
| public function buildSchemata() { | public function buildSchemata() { | ||||
| $this->buildEdgeSchemata(new DifferentialRevision()); | $this->buildEdgeSchemata(new DifferentialRevision()); | ||||
| $this->buildRawSchema( | $this->buildRawSchema( | ||||
| id(new DifferentialRevision())->getApplicationName(), | id(new DifferentialRevision())->getApplicationName(), | ||||
| DifferentialChangeset::TABLE_CACHE, | DifferentialChangeset::TABLE_CACHE, | ||||
| array( | array( | ||||
| 'id' => 'id', | 'id' => 'auto', | ||||
| 'cacheIndex' => 'bytes12', | |||||
| 'cache' => 'bytes', | 'cache' => 'bytes', | ||||
| 'dateCreated' => 'epoch', | 'dateCreated' => 'epoch', | ||||
| ), | ), | ||||
| array( | array( | ||||
| 'PRIMARY' => array( | 'PRIMARY' => array( | ||||
| 'columns' => array('id'), | 'columns' => array('id'), | ||||
| 'unique' => true, | 'unique' => true, | ||||
| ), | ), | ||||
| 'dateCreated' => array( | 'key_cacheIndex' => array( | ||||
| 'columns' => array('cacheIndex'), | |||||
| 'unique' => true, | |||||
| ), | |||||
| 'key_created' => array( | |||||
| 'columns' => array('dateCreated'), | 'columns' => array('dateCreated'), | ||||
| ), | ), | ||||
| ), | ), | ||||
| array( | array( | ||||
| 'persistence' => PhabricatorConfigTableSchema::PERSISTENCE_CACHE, | 'persistence' => PhabricatorConfigTableSchema::PERSISTENCE_CACHE, | ||||
| )); | )); | ||||
| // TODO: All readers and writers for this table were removed in April | // TODO: All readers and writers for this table were removed in April | ||||
| ▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines | |||||