fp/services/migrations-schema/migrations/00130_add-s3_files-fk-to-vo...

6 lines
183 B
MySQL
Raw Normal View History

2024-12-12 07:23:46 +00:00
ALTER TABLE api.vods ADD COLUMN s3_file_id INTEGER;
ALTER TABLE api.vods
ADD CONSTRAINT vods_s3_file_fk FOREIGN KEY (s3_file_id)
REFERENCES api.s3_files (id)
ON DELETE CASCADE;