Migrating Stored Procedures with Flyway

坚强是说给别人听的谎言 提交于 2019-11-30 09:04:28

There is no special construct in the framework to deal with this. Mainly because I haven't figured out a way to do this that pleases me.

Update: Repeatable scripts are now fully supported as of Flyway 4.0. See https://flywaydb.org/documentation/migrations#repeatable-migrations

What we do is:

  1. Have a complete CREATE OR REPLACE Flyway script for stored procedures whenever they change.
  2. Store each of the stored procedures in a separate area in source control, so that changes are tracked and differences are computable.

Not a great solution, and a pain to remember each time, but it gets past some of the limitations of the tool.

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