projects
/
dbsrgits/SQL-Translator-2.0-ish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
e64a9cb
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator/Object/Column.pm
b/lib/SQL/Translator/Object/Column.pm
index
e6e950a
..
d0632d9
100644
(file)
--- 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
);