chore(sql): 自有 SQL 脚本统一迁入 sql/ttstd 并更新目录约定
This commit is contained in:
1 parent
337033f743
commit
ee94762905
23 files changed
+4
-2
No files matched your search
@@ -0,0 +1,9 @@
|
||||
-- 修复 sys_sn_location.map_error 列类型
|
||||
-- 问题:代码中 map_error 为 String(存 '-' 表示成功,或真实错误信息),
|
||||
-- 但数据库列当前为 INT,导致写入 '-' 时报错:
|
||||
-- "Incorrect integer value: '-' for column 'map_error'"
|
||||
-- 解决:将 map_error 改为 VARCHAR,使其可同时保存成功标记与失败原因。
|
||||
|
||||
ALTER TABLE sys_sn_location
|
||||
MODIFY COLUMN map_error VARCHAR(255) NULL DEFAULT NULL
|
||||
COMMENT '定位失败原因,成功时为 -';
|
||||
Reference in new issue
Block a user