fp/services/migrations-schema/migrations/00129_add-vtuber_id-to-vods...

9 lines
235 B
MySQL
Raw Normal View History

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