Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Add v6.0.0 migration file.

Kailash Nadh00f303c25b92
diff --git a/internal/migrations/v6.0.0.go b/internal/migrations/v6.0.0.go
index 991f5645..055e6325 100644
--- a/internal/migrations/v6.0.0.go
+++ b/internal/migrations/v6.0.0.go
@@ -8,7 +8,7 @@ import (
"github.com/knadh/stuffbin"
)
-func V5_2_0(db *sqlx.DB, fs stuffbin.FileSystem, ko *koanf.Koanf, lo *log.Logger) error {
+func V6_0_0(db *sqlx.DB, fs stuffbin.FileSystem, ko *koanf.Koanf, lo *log.Logger) error {
_, err := db.Exec(`
INSERT INTO settings (key, value, updated_at) VALUES ('security.cors_origins', '[]', NOW()) ON CONFLICT (key) DO NOTHING
`)