projects
/
dbsrgits/SQL-Translator-2.0-ish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
a584e20
)
change what roles are applied to ddl
Justin Hunter [Sat, 1 Aug 2009 23:32:28 +0000 (16:32 -0700)]
lib/SQL/Translator/Parser.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator/Parser.pm
b/lib/SQL/Translator/Parser.pm
index
9d443c4
..
7346c3b
100644
(file)
--- a/
lib/SQL/Translator/Parser.pm
+++ b/
lib/SQL/Translator/Parser.pm
@@
-14,9
+14,10
@@
class SQL::Translator::Parser {
my $apply_role_ddl = sub {
my $self = shift;
- my $role = __PACKAGE__ . '::DDL::' . $self->type;
+ my $role = __PACKAGE__ . '::DDL';
Class::MOP::load_class($role);
$role->meta->apply($self);
+ $self->_subclass();
};
has 'dbh' => (