fix(migration): correct final chunks reference in 025

- 025: chunks → chunk (final reference)

All migrations now fully corrected
This commit is contained in:
Accusys
2026-10-04 23:00:49 +08:00
parent 3ab24e08f1
commit 94dd483bc6
@@ -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 $$;