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
{{ message }}
Repository navigation
os migrate plan/apply forever lists formula (virtual) fields as pending add_columns — the plan promises work apply can never do #3978
对一个刚刚由 os migrate apply 完整创建、随后未做任何改动的数据库再次运行 os migrate plan(examples/app-crm,当前 main):
New (additive — created when you apply)
+ crm_contact [add_columns: full_name]
+ crm_lead [add_columns: is_closed]
+ crm_opportunity [add_columns: expected_revenue, days_to_close]
ℹ 0 table(s) to create, 4 column(s) to add
这四个字段全部是 Field.formula(...)(虚拟字段,读取时计算)。createColumn 对 formula 直接 return(不物化任何列),所以这 4 个 "add_columns" 每次 plan 都会出现、每次 apply 都"执行"却什么也不发生,永远无法收敛。刚 apply 完立即再 plan,输出如上——操作者会以为 apply 没有生效。
Activity
fix(driver-sql): the plan must not promise columns the apply can neve…