Cleanup shebang lines of all maint/example scripts, remove from tests entirely
[dbsrgits/DBIx-Class.git] / maint / gen-schema.pl
index a4e101d..e3faa85 100755 (executable)
@@ -1,11 +1,17 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
 use lib qw(lib t/lib);
 
-use DBICTest;
+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 } }
+));