Plume/migrations/postgres/2018-12-25-164502_media-cover-deletion/down.sql

5 lines
201 B
MySQL
Raw Normal View History

-- This file should undo anything in `up.sql`
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);