mirror of
https://github.com/axllent/mailpit.git
synced 2026-06-28 06:56:06 +00:00
8 lines
327 B
SQL
8 lines
327 B
SQL
-- CREATE SETTINGS TABLE
|
|
CREATE TABLE IF NOT EXISTS {{ tenant "settings" }} (
|
|
Key TEXT,
|
|
Value TEXT
|
|
);
|
|
CREATE UNIQUE INDEX IF NOT EXISTS {{ tenant "idx_settings_key" }} ON {{ tenant "settings" }} (Key);
|
|
INSERT INTO {{ tenant "settings" }} (Key, Value) VALUES ("DeletedSize", (SELECT SUM(Size)/2 FROM {{ tenant "mailbox" }}));
|