flyway/flyway — pull request #579 by xuhuisheng (2013-08-13 09:52:44+00:00)
Title: init metadatatable, when schema has existed.

I used hsqldb for demostration.
But initOnMigrate=true option only create metadataTable, it didn't insert init version record.

I did some dig, and found out that, if the schema existed, the flyway won't insert the init version record. actually, the DbSchema.create() didn't create metadataTable either. The metadataTable is created in migrate step.

So I think the normal flow is:
1. check schema existed,
2. check schema is empty.

if both of conditions is true, don't return null immediatelly, just skip create and continue to create metadataTable and insert init version record.

Please review. Thank you very much. :)