projects
/
dbsrgits/SQL-Translator-2.0-ish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
f2153a6
)
make "is_unique" an attribute
Justin Hunter [Mon, 26 Jul 2010 23:36:25 +0000 (16:36 -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
c65c05a
..
ced7ce0
100644
(file)
--- 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',