From 94dd483bc6696578c59cd047f262961655b51c53 Mon Sep 17 00:00:00 2001 From: Accusys Date: Sun, 4 Oct 2026 23:00:49 +0800 Subject: [PATCH] fix(migration): correct final chunks reference in 025 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 025: chunks → chunk (final reference) All migrations now fully corrected --- migrations/025_rename_video_uuid_to_file_uuid.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/025_rename_video_uuid_to_file_uuid.sql b/migrations/025_rename_video_uuid_to_file_uuid.sql index 52bb46be..8e00e389 100644 --- a/migrations/025_rename_video_uuid_to_file_uuid.sql +++ b/migrations/025_rename_video_uuid_to_file_uuid.sql @@ -37,8 +37,8 @@ CREATE INDEX IF NOT EXISTS idx_person_appearances_file_uuid ON person_appearance -- 5. chunks (check if video_uuid exists) DO $$ BEGIN - IF EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'chunks' AND column_name = 'video_uuid') THEN - ALTER TABLE chunks RENAME COLUMN video_uuid TO file_uuid; + IF EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'chunk' AND column_name = 'video_uuid') THEN + ALTER TABLE chunk RENAME COLUMN video_uuid TO file_uuid; END IF; END $$;