feat(sql): 安保工单扩展表新增 false_alarm 字段,附增量迁移脚本

- DDL: ops_order_security_ext 新增 false_alarm tinyint(1) 列
- 增量迁移: ops_order_security_ext_migrate.sql 供已部署环境 ALTER TABLE

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
lzh
2026-03-15 10:35:30 +08:00
parent ea64ca9c61
commit c9d443a75b
2 changed files with 10 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ CREATE TABLE `ops_order_security_ext` (
-- 处理结果(完成时提交)
`result` text DEFAULT NULL COMMENT '处理结果描述',
`result_img_urls` varchar(2048) DEFAULT NULL COMMENT '处理结果图片URLJSON数组',
`false_alarm` tinyint(1) DEFAULT NULL COMMENT '是否误报: 1=误报',
-- 关键时间点
`dispatched_time` datetime DEFAULT NULL COMMENT '派单时间',

View File

@@ -0,0 +1,9 @@
-- ----------------------------
-- Incremental migration for ops_order_security_ext
-- Version: v1.1.0 (2026-03-15)
-- Description: Add false_alarm column for false alarm marking
-- ----------------------------
ALTER TABLE `ops_order_security_ext`
ADD COLUMN `false_alarm` tinyint(1) DEFAULT NULL COMMENT '是否误报: 1=误报'
AFTER `result_img_urls`;