X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2Fgen-schema.pl;h=e3faa85d8b41fb19852344d95589b8c991446f4f;hb=64ae166780d0cb2b9577e506da9b9b240c146d20;hp=12b3aeba6b61aa76d403fda696a3788ed42925db;hpb=3e0e9e276de1823691989e19575edc86658155f3;p=dbsrgits%2FDBIx-Class.git diff --git a/maint/gen-schema.pl b/maint/gen-schema.pl index 12b3aeb..e3faa85 100755 --- a/maint/gen-schema.pl +++ b/maint/gen-schema.pl @@ -1,12 +1,17 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; use lib qw(lib t/lib); -use DBICTest; -use DBICTest::HelperRels; +use DBICTest::Schema; +use SQL::Translator; -my $schema = DBICTest->initialise; - -print $schema->storage->deployment_statements($schema); +my $schema = DBICTest::Schema->connect; +print scalar ($schema->storage->deployment_statements( + $schema, + 'SQLite', + undef, + undef, + { producer_args => { no_transaction => 1 } } +));