aboutsummaryrefslogtreecommitdiff
path: root/migrations/20220429210913_message_filter.sql
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/20220429210913_message_filter.sql')
-rw-r--r--migrations/20220429210913_message_filter.sql8
1 files changed, 8 insertions, 0 deletions
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'
+);