mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-26 20:10:33 +00:00
5 lines
196 B
MySQL
5 lines
196 B
MySQL
|
-- Your SQL goes here
|
||
|
|
||
|
ALTER TABLE posts DROP CONSTRAINT posts_cover_id_fkey;
|
||
|
ALTER TABLE posts ADD CONSTRAINT posts_cover_id_fkey FOREIGN KEY (cover_id) REFERENCES medias(id) ON DELETE SET NULL;
|