[2.0] Fixed single-column unique constraint support in SchemaTool
This commit is contained in:
parent
32d21879e9
commit
5b0cc45649
@ -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'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user