
-- data migrations are really difficult if api.vods.stream_id is required. Thus we make NULL allowed on stream_id

ALTER TABLE api.vods
  DROP COLUMN stream_id;

ALTER TABLE api.vods
  ADD COLUMN stream_id UUID REFERENCES api.streams(id);

