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 $$;