The title is somewhat contradictory, as the database is indeed not virgin as you installed, through the PostGIS extension, a number of objects in the public schema.
You can either
- set
flyway.schemas
to a new schema, say my_app, which will then be created automatically by Flyway. Your application should then use this one instead of public (recommended) - set
flyway.baselineOnMigrate
totrue
or invokeflyway.baseline()
against the public schema. This will work, but public will then contain a mix of both your application objects and the PostGIS objects