mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-20 00:56:32 +00:00
8 lines
200 B
MySQL
8 lines
200 B
MySQL
|
-- Your SQL goes here
|
||
|
ALTER TABLE users
|
||
|
DROP CONSTRAINT users_avatar_id_fkey,
|
||
|
ADD CONSTRAINT users_avatar_id_fkey
|
||
|
FOREIGN KEY (avatar_id)
|
||
|
REFERENCES medias(id)
|
||
|
ON DELETE SET NULL;
|