Domanda

Correct me if I'm wrong, but it seems that Flyway's first step to integrate an existing database is to create a SQL init file containing a DDL and reference datas extract from production (See here). But I don't understand the purpose of such a file since it doesn't seem to be used neither by Flyway's maven plugin nor Flyway's API. So, there is no chance to restore database at its initial state using tools provided by Flyway. Anyone have an idea about the interest of creating an init file ?

È stato utile?

Soluzione

The idea behind this is to align all environments with production, so you have a common base you can rely on.

The purpose of this is to ensure migrations that'll run against production will have been tried on databases with identical structures in development and test.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top