From 39ddd546f335f327213c48c312d7e79e25bbb72b Mon Sep 17 00:00:00 2001 From: Maciej Ziarkowski Date: Fri, 22 Nov 2019 18:12:48 +0000 Subject: [PATCH] Add user blocking migrations --- migrations/014.block-users.down.sql | 4 ++++ migrations/014.block-users.up.sql | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 migrations/014.block-users.down.sql create mode 100644 migrations/014.block-users.up.sql diff --git a/migrations/014.block-users.down.sql b/migrations/014.block-users.down.sql new file mode 100644 index 00000000..50a98355 --- /dev/null +++ b/migrations/014.block-users.down.sql @@ -0,0 +1,4 @@ +ALTER TABLE users +DROP COLUMN is_blocked, +DROP COLUMN blocked_on, +DROP COLUMN blocked_reason; \ No newline at end of file diff --git a/migrations/014.block-users.up.sql b/migrations/014.block-users.up.sql new file mode 100644 index 00000000..d4f0e940 --- /dev/null +++ b/migrations/014.block-users.up.sql @@ -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; \ No newline at end of file