SQLT behaves sanely in scalar context, no need for stupid version detections (ribasus...
Peter Rabbitson [Sun, 9 Nov 2008 15:27:40 +0000 (15:27 +0000)]
maint/gen-schema.pl

index 6244702..83c8d03 100755 (executable)
@@ -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'));