[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/project/storage/ -> PhabricatorProjectSchemaSpec.php (source)

   1  <?php
   2  
   3  final class PhabricatorProjectSchemaSpec extends PhabricatorConfigSchemaSpec {
   4  
   5    public function buildSchemata() {
   6      $this->buildEdgeSchemata(new PhabricatorProject());
   7  
   8      $this->buildRawSchema(
   9        id(new PhabricatorProject())->getApplicationName(),
  10        PhabricatorProject::TABLE_DATASOURCE_TOKEN,
  11        array(
  12          'id' => 'auto',
  13          'projectID' => 'id',
  14          'token' => 'text128',
  15        ),
  16        array(
  17          'PRIMARY' => array(
  18            'columns' => array('id'),
  19            'unique' => true,
  20          ),
  21          'token' => array(
  22            'columns' => array('token', 'projectID'),
  23            'unique' => true,
  24          ),
  25          'projectID' => array(
  26            'columns' => array('projectID'),
  27          ),
  28        ));
  29  
  30  
  31    }
  32  
  33  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1