1
0
mirror of synced 2024-12-13 06:46:03 +03:00

[2.0] Temporary fix for 186

This commit is contained in:
beberlei 2009-11-30 22:33:08 +00:00
parent 31be2519f6
commit b7652f1f4e

View File

@ -179,7 +179,11 @@ class Table extends AbstractAsset
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])) {
throw SchemaException::columnDoesNotExist($columnName);
}