Reverse engineering an existing database with flywaydb?

好久不见. 提交于 2019-12-11 02:02:48

问题


can flywaydb support this processing?

  1. Setup a reference Oracle database outside of flyway.
  2. Create some testdata within this reference database using an application.
  3. Reverse engineer this database with flyway.
  4. Create test databases during automated builds with flyway based on Scripts gathered through Point 3.

I know that 1,2 and 4 are possible. But what's with Point 3?


回答1:


No, flyway does only support forward db migrations and no reverse engineering of database. If the database is created outside of flyway then flyway does not even have any information on current state of database schema.

Unfortunately to reverse engineer a database you have to use other tools.



来源:https://stackoverflow.com/questions/25179990/reverse-engineering-an-existing-database-with-flywaydb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!