feat: 添加新插件支持及多项功能改进
- 新增磁盘加密、打印审计和剪贴板管控插件支持 - 优化水印插件显示效果,支持中文及更多Unicode字符 - 改进硬件资产收集逻辑,更准确获取磁盘和显卡信息 - 增强API错误处理,添加详细日志记录 - 完善前端界面,新增插件管理页面 - 修复多个UI问题,优化页面过渡效果 - 添加环境变量覆盖配置功能 - 实现插件状态管理API - 更新文档和变更日志 - 添加安装程序脚本支持
This commit is contained in:
10
migrations/016_encryption_alerts_unique.sql
Normal file
10
migrations/016_encryption_alerts_unique.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
-- 016_encryption_alerts_unique.sql: Add UNIQUE constraint to prevent duplicate alerts
|
||||
|
||||
-- Remove existing duplicates, keeping the earliest alert per device/drive/type/status
|
||||
DELETE FROM encryption_alerts WHERE id NOT IN (
|
||||
SELECT MIN(id) FROM encryption_alerts GROUP BY device_uid, drive_letter, alert_type, status
|
||||
);
|
||||
|
||||
-- Add unique index so ON CONFLICT DO NOTHING works correctly
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS idx_encryption_alerts_unique
|
||||
ON encryption_alerts(device_uid, drive_letter, alert_type, status);
|
||||
Reference in New Issue
Block a user