Yearning icon indicating copy to clipboard operation
Yearning copied to clipboard

[Question] CoreSqlOrder写入报错

Open showsmall opened this issue 1 year ago • 1 comments

描述问题 审批工单写入报错,提示: image

复现 重现该行为的步骤: 通过排查代码: 发现是启动的时候把字段删除了,代码如下: if model.DB().Migrator().HasColumn(&model.CoreSqlOrder{}, "time") { _ = model.DB().Migrator().DropColumn(&model.CoreSqlOrder{}, "time") } 不知道为何这样做

期望的结果 清晰而简洁地描述你希望得到的结果

截图

部署方式

  • [ ] Docker
  • [x] Manual

环境 (请填写环境信息):

  • 操作系统: [e.g. iOS]
  • 浏览器 [e.g. chrome, safari]
  • 版本号 [e.g. 22]

额外的日志信息 在这里添加有关该问题的所有日志。

showsmall avatar Oct 10 '24 02:10 showsmall

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: [Question] CoreSqlOrder writing error

Issues-translate-bot avatar Oct 10 '24 02:10 Issues-translate-bot

降级了?

cookieY avatar Nov 01 '24 12:11 cookieY

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Downgraded?

Issues-translate-bot avatar Nov 01 '24 12:11 Issues-translate-bot

没有降级呀,一直是3.1.8

showsmall avatar Nov 02 '24 06:11 showsmall

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


There is no downgrade, it has always been 3.1.8

Issues-translate-bot avatar Nov 02 '24 06:11 Issues-translate-bot

结构体同步后该问题解决

cookieY avatar Nov 04 '24 01:11 cookieY

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


This problem is solved after the structure is synchronized

Issues-translate-bot avatar Nov 04 '24 01:11 Issues-translate-bot