fp/services/migrations-schema/migrations/00128_add-vtuber-fk-to-vods...

6 lines
175 B
SQL

ALTER TABLE IF EXISTS api.vods
ADD CONSTRAINT vods_vtuber_fk FOREIGN KEY (vtuber)
REFERENCES api.vtubers (id) MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE CASCADE