X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2Fgen-schema.pl;h=e3faa85d8b41fb19852344d95589b8c991446f4f;hb=f54428abf9cc7d7e5604745335694eaf558f6820;hp=6244702f57d695ce2dccd40c3c82bce31d8b07c0;hpb=ebf846e8113e65d2c3b2cddb7667b15a15a79813;p=dbsrgits%2FDBIx-Class.git diff --git a/maint/gen-schema.pl b/maint/gen-schema.pl index 6244702..e3faa85 100755 --- a/maint/gen-schema.pl +++ b/maint/gen-schema.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; @@ -7,13 +7,11 @@ use lib qw(lib t/lib); use DBICTest::Schema; use SQL::Translator; -my $sql_join_str = ''; -if (SQL::Translator->VERSION >= 0.09001) { - $sql_join_str .= ";"; -} -if (SQL::Translator->VERSION >= 0.09) { - $sql_join_str .= "\n"; -} - my $schema = DBICTest::Schema->connect; -print join ($sql_join_str,$schema->storage->deployment_statements($schema, 'SQLite') ); +print scalar ($schema->storage->deployment_statements( + $schema, + 'SQLite', + undef, + undef, + { producer_args => { no_transaction => 1 } } +));