From: Peter Rabbitson Date: Sun, 9 Nov 2008 15:27:40 +0000 (+0000) Subject: SQLT behaves sanely in scalar context, no need for stupid version detections (ribasus... X-Git-Tag: v0.08240~253 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a085381e61284d46d374ada169f52ae6e35fc9bb;p=dbsrgits%2FDBIx-Class.git SQLT behaves sanely in scalar context, no need for stupid version detections (ribasushi--) --- diff --git a/maint/gen-schema.pl b/maint/gen-schema.pl index 6244702..83c8d03 100755 --- a/maint/gen-schema.pl +++ b/maint/gen-schema.pl @@ -7,13 +7,5 @@ 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'));