9 lines
235 B
MySQL
9 lines
235 B
MySQL
|
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;
|