mirror of
https://github.com/axllent/mailpit.git
synced 2025-03-23 21:50:56 +02:00
8 lines
327 B
MySQL
8 lines
327 B
MySQL
|
-- 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" }}));
|