aboutsummaryrefslogtreecommitdiff
path: root/migrations/20220429210913_message_filter.sql
blob: 95b78445a034b14444f59498b86d5481b6a4d72b (plain) (blame)
1
2
3
4
5
6
7
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'
);