From 239a5e94a14cff8066b199719e4eac2787d254da Mon Sep 17 00:00:00 2001 From: Ayrat Hudaygulov Date: Sat, 20 Jul 2024 12:03:46 +0100 Subject: [PATCH] fixes to false positive structure --- src/migrations/V6__false-banned-2.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/migrations/V6__false-banned-2.sql 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 +);