1
0
mirror of synced 2025-01-18 14:31:40 +03:00

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

This commit is contained in:
romanb 2009-09-05 20:35:22 +00:00
parent 32d21879e9
commit 5b0cc45649

View File

@ -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'];