Update tests to use maybe_plan.
[dbsrgits/SQL-Translator.git] / t / 08postgres-to-mysql.t
index e2c9151..c087a0e 100644 (file)
@@ -2,9 +2,16 @@
 # vim: set ft=perl:
 
 use strict;
-use Test::More 'no_plan'; # tests => 1;
+use Test::More;
 use SQL::Translator;
 use Data::Dumper;
+use Test::SQL::Translator qw(maybe_plan);
+
+BEGIN {
+    maybe_plan(1, 
+        'SQL::Translator::Parser::MySQL',
+        'SQL::Translator::Producer::PostgreSQL');
+}
 
 my $create = q|
 
@@ -102,7 +109,10 @@ create table cvtermsynonym (
 
        unique(cvterm_id, termsynonym)
 );
-create index cvterm_synonym_idx1 on cvterm_synonym (cvterm_id);
+
+-- The table "cvterm_synonym" doesn't exist, so 
+-- creating an index on it screws things up!
+-- create index cvterm_synonym_idx1 on cvterm_synonym (cvterm_id);
 
 -- ================================================
 -- TABLE: cvterm_dbxref