mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-12 21:36:27 +00:00
8 lines
223 B
MySQL
8 lines
223 B
MySQL
|
-- This file should undo anything in `up.sql`
|
||
|
ALTER TABLE users
|
||
|
DROP CONSTRAINT users_avatar_id_fkey,
|
||
|
ADD CONSTRAINT users_avatar_id_fkey
|
||
|
FOREIGN KEY (avatar_id)
|
||
|
REFERENCES medias(id)
|
||
|
ON DELETE CASCADE;
|