Add a cover field to posts

Referencing the media to use to illustrate the article
This commit is contained in:
Baptiste Gelez
2018-10-30 19:13:25 +01:00
parent 9f1b37648e
commit ab5edbc6a5
7 changed files with 15 additions and 1 deletions
@@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
ALTER TABLE posts DROP COLUMN cover_id;
@@ -0,0 +1,2 @@
-- Your SQL goes here
ALTER TABLE posts ADD COLUMN cover_id INTEGER REFERENCES medias(id) DEFAULT NULL;