feat: upvote & downvote
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
ALTER TABLE posts
|
||||
DROP COLUMN up_votes,
|
||||
DROP COLUMN down_votes
|
||||
@@ -0,0 +1,4 @@
|
||||
-- Your SQL goes here
|
||||
ALTER TABLE posts
|
||||
ADD COLUMN up_votes INTEGER NOT NULL DEFAULT 0,
|
||||
ADD COLUMN down_votes INTEGER NOT NULL DEFAULT 0
|
||||
Reference in New Issue
Block a user