# Testing 1,2,3,..
#=============================================================================
-plan tests => 321;
+BEGIN {
+ maybe_plan(335,
+ 'SQL::Translator::Parser::XML::XMI::SQLFairy',
+ 'SQL::Translator::Producer::MySQL');
+}
my $testschema = "$Bin/data/xmi/OrderDB.sqlfairy.poseidon2.xmi";
die "Can't find test schema $testschema" unless -e $testschema;
table_ok( $scma->get_table("Customer"), {
name => "Customer",
+ extra => {
+ mysql_table_type => 'InnoDB'
+ },
fields => [
{
name => "name",
table_ok( $scma->get_table("ContactDetails_Customer"), {
name => "ContactDetails_Customer",
+ extra => {
+ mysql_table_type => 'InnoDB'
+ },
fields => [
{
name => "ContactDetailsID",
table_ok( $scma->get_table("ContactDetails"), {
name => "ContactDetails",
+ extra => {
+ mysql_table_type => 'InnoDB'
+ },
fields => [
{
name => "address",
table_ok( $scma->get_table("Order"), {
name => "Order",
+ extra => {
+ mysql_table_type => 'InnoDB'
+ },
fields => [
{
name => "invoiceNumber",
table_ok( $scma->get_table("OrderLine"), {
name => "OrderLine",
+ extra => {
+ mysql_table_type => 'InnoDB'
+ },
fields => [
{
name => "lineNumber",