上传源代码版本
This commit is contained in:
11
database/004_add_device_fields.sql
Normal file
11
database/004_add_device_fields.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- 为 label_scan_history 表添加设备信息字段
|
||||
-- 用于跟踪每条扫描记录是哪个设备产生的
|
||||
-- 执行时间:2026-05-28
|
||||
|
||||
ALTER TABLE `label_scan_history`
|
||||
ADD COLUMN `DeviceCode` VARCHAR(64) NULL COMMENT '设备唯一编码(GUID)' AFTER `CreatedBy`,
|
||||
ADD COLUMN `DeviceName` VARCHAR(100) NULL COMMENT '设备名称(计算机名)' AFTER `DeviceCode`;
|
||||
|
||||
-- 为设备编码添加索引,方便按设备查询/统计
|
||||
ALTER TABLE `label_scan_history`
|
||||
ADD INDEX `IX_DeviceCode` (`DeviceCode`);
|
||||
Reference in New Issue
Block a user