From 5b0cc456495e13e5c6a9c0ed40b8ac9246d3cb1a Mon Sep 17 00:00:00 2001 From: romanb Date: Sat, 5 Sep 2009 20:35:22 +0000 Subject: [PATCH] [2.0] Fixed single-column unique constraint support in SchemaTool --- lib/Doctrine/ORM/Tools/SchemaTool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Tools/SchemaTool.php b/lib/Doctrine/ORM/Tools/SchemaTool.php index d9197f502..3edb16425 100644 --- a/lib/Doctrine/ORM/Tools/SchemaTool.php +++ b/lib/Doctrine/ORM/Tools/SchemaTool.php @@ -248,7 +248,7 @@ 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; + $column['unique'] = isset($mapping['unique']) ? $mapping['unique'] : false; if (isset($mapping['precision'])) { $column['precision'] = $mapping['precision'];