You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I plugged the text into Google translate and I think you're referring to issues where multiple people create migrations at the same time.
This is a knownissue but we haven't decided on the best solution for it yet. My latest summary of the goals for the solutions are here: #179 (comment)
Closing this issue in favor of the others. Feel free the reopen if Google translate completely messed up and you're actually raising a different issue.
Describe the Bug
多人一起开发各自都生成迁移文件,执行up 有先后。如果先创建迁移文件的人后执行会出现
no change
Steps to Reproduce
比如有两个人一起开发项目;
如上,B 后于 A 创建;但是B 先执行了 UP() 操作;这个时候,A 再执行的时候就会出现
no change
的问题。因为A 执行up 的时候系统发现
20190807165830_alter_users_add_column_phone.up.sql
的版本低于最新迁移版本。Expected Behavior
希望能够将历史迁移版本都存储下来,可以将待迁移文件版本与历史版本比对。如果待迁移版本不存在历史版本中,就执行迁移。
Migrate Version
4.5.0
Loaded Source Drivers
file
Loaded Database Drivers
postgres
Go Version
go version go1.12.7 linux/amd64
The text was updated successfully, but these errors were encountered: