Flyway并发迁移 [英] Flyway concurrent migration

查看:168
本文介绍了Flyway并发迁移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在许多服务器上运行的许多项目中查找一个数据库,我们正在考虑为每个项目设置Flyway,以控制我们的数据库结构.

We are having many projects running on many servers looking up into one database, we"re thinking to setup Flyway to every project for control our database structure.

但是,如果某些项目同时重新部署,我们担心并发迁移问题.(当然,我们总是注意sql语法中的"If exist")

But we are worrying about concurrent migration problem, if some projects re-deploy in sametime.( Off-coures, we always take care the "If exist" things in sql syntax )

在同一数据表或其他结构事物上并发更改时,Flyway如何工作?

How Flyway work when concurrent change on same data table or other struture things ?

推荐答案

它按预期工作.请参阅常见问题解答中的答案: http://flywaydb.org/documentation/faq.html#parallel

It works as expected. See the answer in the FAQ: http://flywaydb.org/documentation/faq.html#parallel

这篇关于Flyway并发迁移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆