I mean is it good practice to allow application to modify the db? Or should database migration be done externally to the application code base?
New to this, so any input will be appreciated.
We are using java and gradle to build the application.
Flyway author here.
Yes! At the end of the day, there are two important forces at play:
And so in light of all this, just keep together what belongs together.
By letting the application migrate the database on startup, you ensure the database schema is always in sync with the application's expectations of what it should find there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With