mail-accounts/migrations/20230829163818_aliases.sql

9 lines
234 B
MySQL
Raw Normal View History

2023-08-29 18:48:00 +02:00
-- 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)
);