Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/schema/PhabricatorConfigSchemaSpec.php
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | foreach ($keys as $key_name => $key_spec) { | ||||
if ($key_spec === null) { | if ($key_spec === null) { | ||||
// 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')); | |||||
$table->addKey($key); | $table->addKey($key); | ||||
} | } | ||||
$database->addTable($table); | $database->addTable($table); | ||||
} | } | ||||
protected function buildEdgeSchemata(PhabricatorLiskDAO $object) { | protected function buildEdgeSchemata(PhabricatorLiskDAO $object) { | ||||
$this->buildRawSchema( | $this->buildRawSchema( | ||||
▲ Show 20 Lines • Show All 198 Lines • Show Last 20 Lines |