图像透明处理
This commit is contained in:
33
src/main/sql/update_detect_video_template_add_temp_url.sql
Normal file
33
src/main/sql/update_detect_video_template_add_temp_url.sql
Normal file
@@ -0,0 +1,33 @@
|
||||
-- 为 detect_video_template 表添加临时链接字段
|
||||
-- 执行时间: 2025-01-09
|
||||
|
||||
-- 添加临时访问链接字段
|
||||
ALTER TABLE `detect_video_template`
|
||||
ADD COLUMN `temp_url` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '临时访问链接' AFTER `template_id`;
|
||||
|
||||
-- 添加临时链接过期时间字段
|
||||
ALTER TABLE `detect_video_template`
|
||||
ADD COLUMN `temp_url_expires_at` datetime NULL COMMENT '临时链接过期时间' AFTER `temp_url`;
|
||||
|
||||
-- 为临时链接过期时间字段添加索引,便于查询即将过期的链接
|
||||
ALTER TABLE `detect_video_template`
|
||||
ADD INDEX `idx_temp_url_expires_at`(`temp_url_expires_at`) USING BTREE;
|
||||
|
||||
-- 添加任务状态字段
|
||||
ALTER TABLE `detect_video_template`
|
||||
ADD COLUMN `task_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '任务状态' AFTER `temp_url_expires_at`;
|
||||
|
||||
-- 添加任务ID字段
|
||||
ALTER TABLE `detect_video_template`
|
||||
ADD COLUMN `task_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '任务ID' AFTER `task_status`;
|
||||
|
||||
-- 为任务状态字段添加索引,便于查询特定状态的任务
|
||||
ALTER TABLE `detect_video_template`
|
||||
ADD INDEX `idx_task_status`(`task_status`) USING BTREE;
|
||||
|
||||
-- 为任务ID字段添加索引,便于查询特定任务
|
||||
ALTER TABLE `detect_video_template`
|
||||
ADD INDEX `idx_task_id`(`task_id`) USING BTREE;
|
||||
|
||||
-- 验证表结构
|
||||
DESCRIBE `detect_video_template`;
|
||||
Reference in New Issue
Block a user