How to use flyway to migrate data from one DB to another DB?

强颜欢笑 提交于 2019-12-06 15:06:10

Flyway doesn't directly support such a capability. However, you could do the following:

  • As Laurenz says, use pg_dump to extract DB A into a script file
  • Create a Flyway migration script and copy in the contents of the script file
  • Run the Migrate command against DB B
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!