High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Rename v2.6.0 migration to v3.0.0, the next major release.
Kailash Nadhfa2c840ddbc5
diff --git a/cmd/upgrade.go b/cmd/upgrade.goindex 3eedb1a3..e3c562a5 100644--- a/cmd/upgrade.go+++ b/cmd/upgrade.go@@ -36,7 +36,7 @@ var migList = []migFunc{{"v2.3.0", migrations.V2_3_0},{"v2.4.0", migrations.V2_4_0},{"v2.5.0", migrations.V2_5_0},- {"v2.6.0", migrations.V2_6_0},+ {"v3.0.0", migrations.V3_0_0},}// upgrade upgrades the database to the current version by running SQL migration filesdiff --git a/internal/migrations/v2.6.0.go b/internal/migrations/v2.6.0.goindex 2e4ebf66..0f209224 100644--- a/internal/migrations/v2.6.0.go+++ b/internal/migrations/v2.6.0.go@@ -6,8 +6,8 @@ import ("github.com/knadh/stuffbin")-// V2_6_0 performs the DB migrations.-func V2_6_0(db *sqlx.DB, fs stuffbin.FileSystem, ko *koanf.Koanf) error {+// V3_0_0 performs the DB migrations.+func V3_0_0(db *sqlx.DB, fs stuffbin.FileSystem, ko *koanf.Koanf) error {// Insert new preference settings.if _, err := db.Exec(`INSERT INTO settings (key, value) VALUES ('bounce.postmark', '{"enabled": false, "username": "", "password": ""}') ON CONFLICT DO NOTHING;`); err != nil {return errdiff --git a/internal/migrations/v2.3.0.go b/internal/migrations/v3.0.0.gosimilarity index 100%rename from internal/migrations/v2.3.0.gorename to internal/migrations/v3.0.0.go