Commit a8e39406 authored by romanb's avatar romanb

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

parent 029b9aeb
......@@ -245,7 +245,8 @@ class SchemaTool
$column['type'] = Type::getType($mapping['type']);
$column['length'] = isset($mapping['length']) ? $mapping['length'] : null;
$column['notnull'] = isset($mapping['nullable']) ? ! $mapping['nullable'] : false;
$column['unique'] = isset($mapping['unique']) ? ! $mapping['unique'] : false;
if (isset($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