On the same topic, I'm having trouble getting SchemaExport to create InnoDB tables, due to the addition of the "alter table" & "drop table" statements.
The method suggested in the FAQ (setting delim = "type=InnoDB;") doesn't work anymore. Output such as the following is generated:
Code:
alter table ... drop foreign key ... type=InnoDB;
drop table if exists ... type=InnoDB;
alter table ... add index ... (...), add constraint ... foreign key (...) references xxx (id) type=InnoDB;
This is broken syntax.
Apart from configuring the MySQL server to create all tables as InnoDB, is there any other workaround to creating InnoDB tables for the Hibernate entities?