diff --git a/src/migrations/V6__false-banned-2.sql b/src/migrations/V6__false-banned-2.sql new file mode 100644 index 0000000..5c72a49 --- /dev/null +++ b/src/migrations/V6__false-banned-2.sql @@ -0,0 +1,13 @@ +DROP TABLE false_positive_users; +CREATE TABLE false_positive_users +( + user_id BIGINT PRIMARY KEY + REFERENCES banned (banned_user_id) ON DELETE CASCADE +); + +DROP TABLE false_positive_messages; +CREATE TABLE false_positive_messages +( + id BIGINT PRIMARY KEY + REFERENCES banned (id) ON DELETE CASCADE +);