Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/schema/PhabricatorConfigSchemaSpec.php
Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | foreach ($keys as $key_name => $key_spec) { | ||||
// This is a subclass removing a key which Lisk expects. | // This is a subclass removing a key which Lisk expects. | ||||
continue; | continue; | ||||
} | } | ||||
$key = $this->newKey($key_name) | $key = $this->newKey($key_name) | ||||
->setColumnNames(idx($key_spec, 'columns', array())); | ->setColumnNames(idx($key_spec, 'columns', array())); | ||||
$key->setUnique((bool)idx($key_spec, 'unique')); | $key->setUnique((bool)idx($key_spec, 'unique')); | ||||
$key->setIndexType(idx($key_spec, 'type', 'BTREE')); | |||||
$table->addKey($key); | $table->addKey($key); | ||||
} | } | ||||
$database->addTable($table); | $database->addTable($table); | ||||
} | } | ||||
protected function buildEdgeSchemata(PhabricatorLiskDAO $object) { | protected function buildEdgeSchemata(PhabricatorLiskDAO $object) { | ||||
▲ Show 20 Lines • Show All 238 Lines • Show Last 20 Lines |