Found non-empty schema "public" without metadata table! Use init() or set initOnMigrate to true to initialize the metadata table.
- I'm using Postgres 9.2 with Postgis 2.0. This means that by default when I create a new database there will be a table created in
publicschema calledspatial_ref_sys.
When I run flyway migrate on this database, I get the above error. Running init seems to create the public.schema_version table and mark version 1 as SUCCEDED without actually running the the migration file. I've also tried combinations of initOnMigrate with no success. Flyway is not configured to manage any schemas.
Any ideas on how I can run a migration in this scenario?