From 5999e6a803a7b848acf054918fec9ee5024d5697 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Tue, 3 May 2022 13:57:09 -0400 Subject: filter: Initial message filter implementation Also a custom error type, tracing_subscriber, and unsafe impls --- migrations/20220429210913_message_filter.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 migrations/20220429210913_message_filter.sql (limited to 'migrations/20220429210913_message_filter.sql') diff --git a/migrations/20220429210913_message_filter.sql b/migrations/20220429210913_message_filter.sql new file mode 100644 index 0000000..95b7844 --- /dev/null +++ b/migrations/20220429210913_message_filter.sql @@ -0,0 +1,8 @@ +-- Add migration script here + +CREATE TYPE filter_action AS ENUM ( 'delete', 'review' ); +CREATE TABLE message_filter( + id SERIAL PRIMARY KEY, + pattern TEXT NOT NULL, + action filter_action NOT NULL DEFAULT 'review' +); -- cgit v1.2.3