Add a table for mail aliases

This commit is contained in:
traxys 2023-08-29 18:48:00 +02:00
parent 026374fd7c
commit 5cd7f26717
2 changed files with 15 additions and 3 deletions

View file

@ -0,0 +1,8 @@
-- Add migration script here
ALTER TABLE emails ADD COLUMN alias BOOLEAN NOT NULL DEFAULT false;
CREATE TABLE alias_recipient (
mail TEXT REFERENCES emails(mail) NOT NULL,
recipient TEXT NOT NULL,
PRIMARY KEY (mail, recipient)
);