org.flywaydb.core.api.FlywayException: Found non-empty schema "PUBLIC" without metadata table! Use baseline() or set baselineOnMigrate to true to initialize the metadata table.

Hot problem!
This exception has a lot of traffic. You can help 70 users by writing a short tip.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by mozzbozz
, 1 year ago
Found non-empty schema "PUBLIC" without metadata table! Use baseline() or set baselineOnMigrate to true to initialize the metadata table.
via GitHub by ashtripathi
, 1 year ago
Found non-empty schema "MYWEBAPP" without metadata table! Use baseline() or set baselineOnMigrate to true to initialize the metadata table.
via GitHub by bearrito
, 7 months ago
Found non-empty schema "bnr" without metadata table! Use baseline() or set baselineOnMigrate to true to initialize the metadata table.
via GitHub by ceizner
, 11 months ago
Found non-empty schema `draios` without metadata table! Use baseline() or set baselineOnMigrate to true to initialize the metadata table.
via GitHub by praseodym
, 6 months ago
Found non-empty schema "public" without metadata table! Use baseline() or set baselineOnMigrate to true to initialize the metadata table.
via GitHub by liuduojia
, 2 months ago
Found non-empty schema `excord` without metadata table! Use baseline() or set baselineOnMigrate to true to initialize the metadata table.
org.flywaydb.core.api.FlywayException: Found non-empty schema "PUBLIC" without metadata table! Use baseline() or set baselineOnMigrate to true to initialize the metadata table.
at org.flywaydb.core.Flyway$1.execute(Flyway.java:1035)
at org.flywaydb.core.Flyway$1.execute(Flyway.java:1006)
at org.flywaydb.core.Flyway.execute(Flyway.java:1418)
at org.flywaydb.core.Flyway.migrate(Flyway.java:1006)
at org.mycontroller.standalone.db.DataBaseUtils.loadDatabase(DataBaseUtils.java:113)
at org.mycontroller.standalone.StartApp.startServices(StartApp.java:243)
at org.mycontroller.standalone.StartApp.startMycontroller(StartApp.java:106)
at org.mycontroller.standalone.StartApp.main(StartApp.java:93)

Users with the same issue

Once, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Once, 2 weeks ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.