[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/harbormaster/storage/ -> HarbormasterSchemaSpec.php (source)

   1  <?php
   2  
   3  final class HarbormasterSchemaSpec extends PhabricatorConfigSchemaSpec {
   4  
   5    public function buildSchemata() {
   6      $this->buildEdgeSchemata(new HarbormasterBuildable());
   7  
   8      // NOTE: This table is not used by any Harbormaster objects, but is used
   9      // by unit tests.
  10      $this->buildRawSchema(
  11        id(new HarbormasterObject())->getApplicationName(),
  12        PhabricatorLiskDAO::COUNTER_TABLE_NAME,
  13        array(
  14          'counterName' => 'text32',
  15          'counterValue' => 'id64',
  16        ),
  17        array(
  18          'PRIMARY' => array(
  19            'columns' => array('counterName'),
  20            'unique' => true,
  21          ),
  22        ));
  23  
  24  
  25      $this->buildRawSchema(
  26        id(new HarbormasterBuildable())->getApplicationName(),
  27        'harbormaster_buildlogchunk',
  28        array(
  29          'id' => 'auto',
  30          'logID' => 'id',
  31          'encoding' => 'text32',
  32  
  33          // T6203/NULLABILITY
  34          // Both the type and nullability of this column are crazily wrong.
  35          'size' => 'uint32?',
  36  
  37          'chunk' => 'bytes',
  38        ),
  39        array(
  40          'PRIMARY' => array(
  41            'columns' => array('id'),
  42            'unique' => true,
  43          ),
  44          'key_log' => array(
  45            'columns' => array('logID'),
  46          ),
  47        ));
  48  
  49    }
  50  
  51  }


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