mirror of
https://github.com/axllent/mailpit.git
synced 2025-03-21 21:47:19 +02: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" }}));
|