From: Justin Hunter Date: Tue, 9 Feb 2010 06:24:32 +0000 (-0800) Subject: added some attributes X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4d662d4c3b4cbb574836ee9ee391a696e3fb7c21;p=dbsrgits%2FSQL-Translator-2.0-ish.git added some attributes --- diff --git a/lib/SQL/Translator/Object/Constraint.pm b/lib/SQL/Translator/Object/Constraint.pm index 107f987..d8f0bfe 100644 --- 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);