X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2Fgen-schema.pl;h=ffd2df7995289cc4433b78cfa70af86751382d0f;hb=e91e756c9730a33b881db5ab73f5bb3352d53d06;hp=b16bd159b9aad03c619b5ce3c561eaba9079cb18;hpb=0009fa4905ab7f4585c4b470bfe049666bce8e17;p=dbsrgits%2FDBIx-Class.git diff --git a/maint/gen-schema.pl b/maint/gen-schema.pl index b16bd15..ffd2df7 100755 --- a/maint/gen-schema.pl +++ b/maint/gen-schema.pl @@ -4,19 +4,8 @@ use strict; use warnings; use lib qw(lib t/lib); -use UNIVERSAL::require; +use DBICTest::Schema; -my $from = 'SQL::Translator::Parser::DBIx::Class'; -my $to = 'SQL::Translator::Producer::SQLite'; -my $sqlt = 'SQL::Translator'; -my $schema = 'DBICTest::Schema'; +my $schema = DBICTest::Schema->connect; -$from->require; -$to->require; -$sqlt->require; -$schema->require; - -my $tr = $sqlt->new; - -$from->can("parse")->($tr, $schema); -print $to->can("produce")->($tr); +print $schema->storage->deployment_statements($schema, 'SQLite');