Add user blocking migrations
This commit is contained in:
parent
2ffa14cdbb
commit
39ddd546f3
4
migrations/014.block-users.down.sql
Normal file
4
migrations/014.block-users.down.sql
Normal file
@ -0,0 +1,4 @@
|
||||
ALTER TABLE users
|
||||
DROP COLUMN is_blocked,
|
||||
DROP COLUMN blocked_on,
|
||||
DROP COLUMN blocked_reason;
|
4
migrations/014.block-users.up.sql
Normal file
4
migrations/014.block-users.up.sql
Normal 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;
|
Loading…
Reference in New Issue
Block a user