Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialSchemaSpec.php
Show All 25 Lines | $this->buildRawSchema( | ||||
'key_created' => array( | '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 | |||||
// 2019. Destroy this table once we're sure we won't miss it. | |||||
$this->buildRawSchema( | |||||
id(new DifferentialRevision())->getApplicationName(), | |||||
'differential_commit', | |||||
array( | |||||
'revisionID' => 'id', | |||||
'commitPHID' => 'phid', | |||||
), | |||||
array( | |||||
'PRIMARY' => array( | |||||
'columns' => array('revisionID', 'commitPHID'), | |||||
'unique' => true, | |||||
), | |||||
'commitPHID' => array( | |||||
'columns' => array('commitPHID'), | |||||
'unique' => true, | |||||
), | |||||
)); | |||||
$this->buildRawSchema( | $this->buildRawSchema( | ||||
id(new DifferentialRevision())->getApplicationName(), | id(new DifferentialRevision())->getApplicationName(), | ||||
ArcanistDifferentialRevisionHash::TABLE_NAME, | ArcanistDifferentialRevisionHash::TABLE_NAME, | ||||
array( | array( | ||||
'revisionID' => 'id', | 'revisionID' => 'id', | ||||
'type' => 'bytes4', | 'type' => 'bytes4', | ||||
'hash' => 'bytes40', | 'hash' => 'bytes40', | ||||
), | ), | ||||
Show All 13 Lines |