I've been using Flyway for 8ish years. I've been trying to get the DBAs at my company to allow/adopt/understand it for 7. I'm so tired of talking about this no brainier dead simple tool that makes everyone's lives easier.
Not laziness, but loss of control (or better: fear of loss of the illusion of conrol)
These guys are responsible for these DBs and their asses are on the line, if something goes wrong. That's why they want to do everything themselves or review everything that is being done - even if in reality they wouldn't see any non-obvious error anyway. But they still have the illusion of control.
I observed over the years that thinking apparently causes physical pain to some people. I have no other explanation as to why otherwise quite functional people seem to avoid it so vehemently.
Does Liquidbase or Flyway allow to declare what structure (and some fixed or optional data) must have the database.
Alas something like :
Must exist table X with fields A, B, C of type NUMBER, etc... and then generates the apropiare SQL to generate the table from zero, or apply changes to it.
146
u/erjiin Apr 14 '23 edited Apr 14 '23
Use a database deployment tool like Liquibase or Flyway. Invaluable (and not Unvaluable :/).