mirror of
https://origin.cursor.com/mrdevmx/panels.git
synced 2026-10-09 11:23:18 +00:00
18 lines
653 B
SQL
18 lines
653 B
SQL
--liquibase formatted sql
|
|
|
|
--changeset panel:platform-007-smtp-settings endDelimiter:; splitStatements:true
|
|
|
|
CREATE TABLE IF NOT EXISTS smtp_settings (
|
|
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
host TEXT NOT NULL DEFAULT '',
|
|
port INTEGER NOT NULL DEFAULT 587,
|
|
username TEXT NOT NULL DEFAULT '',
|
|
password TEXT NOT NULL DEFAULT '',
|
|
from_address TEXT NOT NULL DEFAULT '',
|
|
enabled INTEGER NOT NULL DEFAULT 0,
|
|
updated_at TEXT NOT NULL DEFAULT (datetime('now'))
|
|
);
|
|
|
|
INSERT INTO smtp_settings (id, host, port, username, password, from_address, enabled)
|
|
SELECT 1, '', 587, '', '', '', 0
|
|
WHERE NOT EXISTS (SELECT 1 FROM smtp_settings WHERE id = 1);
|