Add user blocking migrations

This commit is contained in:
Maciej Ziarkowski 2019-11-22 18:12:48 +00:00
parent 2ffa14cdbb
commit 39ddd546f3
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,4 @@
ALTER TABLE users
DROP COLUMN is_blocked,
DROP COLUMN blocked_on,
DROP COLUMN blocked_reason;

View File

@ -0,0 +1,4 @@
ALTER TABLE users
ADD COLUMN is_blocked BOOLEAN NOT NULL DEFAULT (false),
ADD COLUMN blocked_on TIMESTAMP WITH TIME ZONE NULL,
ADD COLUMN blocked_reason TEXT NULL;