Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多服务实例 启动冲突 #66

Closed
zhonghuazhi opened this issue Feb 24, 2021 · 1 comment
Closed

多服务实例 启动冲突 #66

zhonghuazhi opened this issue Feb 24, 2021 · 1 comment

Comments

@zhonghuazhi
Copy link

spring.flyway.locations=classpath:db/migration

按照Demo样例 可以实现单服务 使用 FlyWay 方式管理数据库脚本,但是在多服务下 使用FlyWay异常。原因是因为 A服务启动后,数据库中已经存在 flyway_schema_history 表,而 B服务在启动的时候 ,直接报错。 org.flywaydb.core.api.exception.FlywayValidateException: Validate failed: Migrations have failed validation

@dyc87112
Copy link
Owner

dyc87112 commented Mar 1, 2021

不同服务公用一个数据库,这样的设计本身就不太合理哦

@dyc87112 dyc87112 closed this as completed Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants