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:
@@ -21,6 +21,7 @@ CREATE TABLE `ops_order_security_ext` (
|
|||||||
-- 处理结果(完成时提交)
|
-- 处理结果(完成时提交)
|
||||||
`result` text DEFAULT NULL COMMENT '处理结果描述',
|
`result` text DEFAULT NULL COMMENT '处理结果描述',
|
||||||
`result_img_urls` varchar(2048) DEFAULT NULL COMMENT '处理结果图片URL,JSON数组',
|
`result_img_urls` varchar(2048) DEFAULT NULL COMMENT '处理结果图片URL,JSON数组',
|
||||||
|
`false_alarm` tinyint(1) DEFAULT NULL COMMENT '是否误报: 1=误报',
|
||||||
|
|
||||||
-- 关键时间点
|
-- 关键时间点
|
||||||
`dispatched_time` datetime DEFAULT NULL COMMENT '派单时间',
|
`dispatched_time` datetime DEFAULT NULL COMMENT '派单时间',
|
||||||
|
|||||||
9
sql/mysql/ops_order_security_ext_migrate.sql
Normal file
9
sql/mysql/ops_order_security_ext_migrate.sql
Normal 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`;
|
||||||
Reference in New Issue
Block a user