forked from knadh/listmonk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,16 +26,16 @@ func V2_0_0(db *sqlx.DB, fs stuffbin.FileSystem, ko *koanf.Koanf) error { | |
} | ||
|
||
if _, err := db.Exec(` | ||
INSERT INTO settings (key, value) SELECT k, v::JSONB FROM (VALUES | ||
INSERT INTO settings (key, value) VALUES | ||
('bounce.enabled', 'false'), | ||
('bounce.webhooks_enabled', 'false'), | ||
('bounce.count', '2'), | ||
('bounce.action', '"blocklist"'), | ||
('bounce.ses_enabled', 'false'), | ||
('bounce.sendgrid_enabled', 'false'), | ||
('bounce.sendgrid_key', '""'), | ||
('bounce.mailboxes', '[{"enabled":false, "type": "pop", "host":"pop.yoursite.com","port":995,"auth_protocol":"userpass","username":"username","password":"password","return_path": "[email protected]","scan_interval":"15m","tls_enabled":true,"tls_skip_verify":false}]')) | ||
VALS (k, v) WHERE NOT EXISTS(SELECT * FROM settings LIMIT 1);`); err != nil { | ||
('bounce.mailboxes', '[{"enabled":false, "type": "pop", "host":"pop.yoursite.com","port":995,"auth_protocol":"userpass","username":"username","password":"password","return_path": "[email protected]","scan_interval":"15m","tls_enabled":true,"tls_skip_verify":false}]') | ||
ON CONFLICT DO NOTHING;`); err != nil { | ||
return err | ||
} | ||
|
||
|