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)
|
||||
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 $$;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user