[2.0] Temporary fix for 186
This commit is contained in:
parent
31be2519f6
commit
b7652f1f4e
@ -179,7 +179,11 @@ class Table extends AbstractAsset
|
|||||||
throw SchemaException::indexNameInvalid($indexName);
|
throw SchemaException::indexNameInvalid($indexName);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($columnNames AS $columnName) {
|
foreach ($columnNames AS $columnName => $indexColOptions) {
|
||||||
|
if (is_numeric($columnName) && is_string($indexColOptions)) {
|
||||||
|
$columnName = $indexColOptions;
|
||||||
|
}
|
||||||
|
|
||||||
if (!isset($this->_columns[$columnName])) {
|
if (!isset($this->_columns[$columnName])) {
|
||||||
throw SchemaException::columnDoesNotExist($columnName);
|
throw SchemaException::columnDoesNotExist($columnName);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user