From: Justin Hunter Date: Tue, 22 Sep 2009 01:02:55 +0000 (-0700) Subject: make is_nullable a Bit and default the column size to [ 0 ] X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2cb42d477a287337ed50fdc92482e7bddcac6719;p=dbsrgits%2FSQL-Translator-2.0-ish.git make is_nullable a Bit and default the column size to [ 0 ] --- diff --git a/lib/SQL/Translator/Object/Column.pm b/lib/SQL/Translator/Object/Column.pm index e6e950a..d0632d9 100644 --- a/lib/SQL/Translator/Object/Column.pm +++ b/lib/SQL/Translator/Object/Column.pm @@ -34,11 +34,12 @@ class SQL::Translator::Object::Column extends SQL::Translator::Object { isa => ColumnSize, coerce => 1, auto_deref => 1, + default => sub { [ 0 ] }, ); has 'is_nullable' => ( is => 'rw', - isa => Bool, + isa => Bit, required => 1, default => 1 );