Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / project / storage / PhabricatorProjectSchemaSpec.php
blob5f0884b377f5a4cf811c1a4c95cc0396d6154045
1 <?php
3 final class PhabricatorProjectSchemaSpec extends PhabricatorConfigSchemaSpec {
5 public function buildSchemata() {
6 $this->buildEdgeSchemata(new PhabricatorProject());
8 $this->buildRawSchema(
9 id(new PhabricatorProject())->getApplicationName(),
10 PhabricatorProject::TABLE_DATASOURCE_TOKEN,
11 array(
12 'id' => 'auto',
13 'projectID' => 'id',
14 'token' => 'text128',
16 array(
17 'PRIMARY' => array(
18 'columns' => array('id'),
19 'unique' => true,
21 'token' => array(
22 'columns' => array('token', 'projectID'),
23 'unique' => true,
25 'projectID' => array(
26 'columns' => array('projectID'),
28 ));