Commit 5b0cc456 authored by romanb's avatar romanb

[2.0] Fixed single-column unique constraint support in SchemaTool

parent 32d21879
...@@ -248,7 +248,7 @@ class SchemaTool ...@@ -248,7 +248,7 @@ class SchemaTool
$column['type'] = Type::getType($mapping['type']); $column['type'] = Type::getType($mapping['type']);
$column['length'] = isset($mapping['length']) ? $mapping['length'] : null; $column['length'] = isset($mapping['length']) ? $mapping['length'] : null;
$column['notnull'] = isset($mapping['nullable']) ? ! $mapping['nullable'] : false; $column['notnull'] = isset($mapping['nullable']) ? ! $mapping['nullable'] : false;
$column['unique'] = isset($mapping['unique']) ? ! $mapping['unique'] : false; $column['unique'] = isset($mapping['unique']) ? $mapping['unique'] : false;
if (isset($mapping['precision'])) { if (isset($mapping['precision'])) {
$column['precision'] = $mapping['precision']; $column['precision'] = $mapping['precision'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment