make is_nullable a Bit and default the column size to [ 0 ]
Justin Hunter [Tue, 22 Sep 2009 01:02:55 +0000 (18:02 -0700)]
lib/SQL/Translator/Object/Column.pm

index e6e950a..d0632d9 100644 (file)
@@ -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
     );