fp/services/migrations-schema/migrations/00133_add-mux_assets-fk-to-...

7 lines
192 B
SQL

ALTER TABLE api.vods ADD COLUMN mux_asset_id INTEGER;
ALTER TABLE api.vods
ADD CONSTRAINT vods_mux_asset_fk FOREIGN KEY (mux_asset_id)
REFERENCES api.mux_assets (id)
ON DELETE CASCADE;