From: Justin Hunter Date: Mon, 26 Jul 2010 23:36:25 +0000 (-0700) Subject: make "is_unique" an attribute X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=995165f70801a98336ed6349b03f555931b49bfd;p=dbsrgits%2FSQL-Translator-2.0-ish.git make "is_unique" an attribute --- diff --git a/lib/SQL/Translator/Object/Column.pm b/lib/SQL/Translator/Object/Column.pm index c65c05a..ced7ce0 100644 --- a/lib/SQL/Translator/Object/Column.pm +++ b/lib/SQL/Translator/Object/Column.pm @@ -61,6 +61,12 @@ class SQL::Translator::Object::Column extends SQL::Translator::Object is dirty { required => 1, default => 1 ); + + has 'is_unique' => ( + is => 'rw', + isa => Bool, + default => 0, + ); has 'default_value' => ( is => 'rw',