fp/services/migrations-schema/migrations/00076_builds-use-vod_id-ins...

8 lines
174 B
SQL

-- for consistency, using vod_id instead of vod
ALTER TABLE api.builds
DROP COLUMN vod;
ALTER TABLE api.builds
ADD COLUMN vod_id UUID NOT NULL REFERENCES api.vods(id);