fix(migration): correct final chunks reference in 025
- 025: chunks → chunk (final reference) All migrations now fully corrected
This commit is contained in:
@@ -37,8 +37,8 @@ CREATE INDEX IF NOT EXISTS idx_person_appearances_file_uuid ON person_appearance
|
|||||||
-- 5. chunks (check if video_uuid exists)
|
-- 5. chunks (check if video_uuid exists)
|
||||||
DO $$
|
DO $$
|
||||||
BEGIN
|
BEGIN
|
||||||
IF EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'chunks' AND column_name = 'video_uuid') THEN
|
IF EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'chunk' AND column_name = 'video_uuid') THEN
|
||||||
ALTER TABLE chunks RENAME COLUMN video_uuid TO file_uuid;
|
ALTER TABLE chunk RENAME COLUMN video_uuid TO file_uuid;
|
||||||
END IF;
|
END IF;
|
||||||
END $$;
|
END $$;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user