fix: 修正视频相关迁移文件版本号冲突,从 000032 改为 000033
This commit is contained in:
+3
-3
@@ -1,7 +1,7 @@
|
||||
-- Migration: 000032_add_video_info_to_chunks (down)
|
||||
-- Migration: 000033_add_video_info_to_chunks (down)
|
||||
-- Description: Remove video_info column from chunks table.
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000032 down] Removing video_info column from chunks'; END $$;
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000033 down] Removing video_info column from chunks'; END $$;
|
||||
|
||||
ALTER TABLE chunks DROP COLUMN IF EXISTS video_info;
|
||||
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000032 down] video_info column removed successfully'; END $$;
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000033 down] video_info column removed successfully'; END $$;
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
-- Migration: 000032_add_video_info_to_chunks
|
||||
-- Migration: 000033_add_video_info_to_chunks
|
||||
-- Description: Add video_info column to chunks table for video multimodal processing.
|
||||
-- This column stores JSON-serialized VideoInfo struct containing video analysis results.
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000032] Adding video_info column to chunks'; END $$;
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000033] Adding video_info column to chunks'; END $$;
|
||||
|
||||
ALTER TABLE chunks ADD COLUMN IF NOT EXISTS video_info TEXT;
|
||||
|
||||
COMMENT ON COLUMN chunks.video_info IS 'Video information in JSON format: {"url": string, "frame_count": int, "has_vlm_analysis": bool, "has_asr": bool, "video_summary": string, "asr_text": string, "frame_descriptions": string[]}';
|
||||
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000032] video_info column added successfully'; END $$;
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000033] video_info column added successfully'; END $$;
|
||||
Reference in New Issue
Block a user