Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/schema/PhabricatorConfigSchemaSpec.php
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | protected function buildRawSchema( | ||||
$table_name, | $table_name, | ||||
array $columns, | array $columns, | ||||
array $keys) { | array $keys) { | ||||
$database = $this->getDatabase($database_name); | $database = $this->getDatabase($database_name); | ||||
$table = $this->newTable($table_name); | $table = $this->newTable($table_name); | ||||
foreach ($columns as $name => $type) { | foreach ($columns as $name => $type) { | ||||
if ($type === null) { | |||||
continue; | |||||
} | |||||
$details = $this->getDetailsForDataType($type); | $details = $this->getDetailsForDataType($type); | ||||
list($column_type, $charset, $collation, $nullable) = $details; | list($column_type, $charset, $collation, $nullable) = $details; | ||||
$column = $this->newColumn($name) | $column = $this->newColumn($name) | ||||
->setDataType($type) | ->setDataType($type) | ||||
->setColumnType($column_type) | ->setColumnType($column_type) | ||||
->setCharacterSet($charset) | ->setCharacterSet($charset) | ||||
->setCollation($collation) | ->setCollation($collation) | ||||
▲ Show 20 Lines • Show All 199 Lines • Show Last 20 Lines |