projects
/
dbsrgits/SQL-Translator-2.0-ish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
b0f5a88
)
added some attributes
Justin Hunter [Tue, 9 Feb 2010 06:24:32 +0000 (22:24 -0800)]
lib/SQL/Translator/Object/Constraint.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator/Object/Constraint.pm
b/lib/SQL/Translator/Object/Constraint.pm
index
107f987
..
d8f0bfe
100644
(file)
--- a/
lib/SQL/Translator/Object/Constraint.pm
+++ b/
lib/SQL/Translator/Object/Constraint.pm
@@
-74,6
+74,9
@@
class SQL::Translator::Object::Constraint extends SQL::Translator::Object {
default => ''
);
+ has 'on_delete' => ( is => 'rw', required => 0);
+ has 'on_update' => ( is => 'rw', required => 0);
+
around add_column(Column $column) {
if ($self->has_type && $self->type eq 'PRIMARY KEY') {
$column->is_primary_key(1);