Skip to content

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

Make tx DB upgrade schema consistent with install schema.

Kailash Nadhd3774d606a04
diff --git a/internal/migrations/v2.2.0.go b/internal/migrations/v2.2.0.go
index 1d372861..2863c0e7 100644
--- a/internal/migrations/v2.2.0.go
+++ b/internal/migrations/v2.2.0.go
@@ -23,7 +23,7 @@ func V2_2_0(db *sqlx.DB, fs stuffbin.FileSystem, ko *koanf.Koanf) error {
return err
}
- if _, err := db.Exec(`ALTER TABLE templates ADD COLUMN IF NOT EXISTS "subject" TEXT NOT NULL DEFAULT ''`); err != nil {
+ if _, err := db.Exec(`ALTER TABLE templates ADD COLUMN IF NOT EXISTS "subject" TEXT NOT NULL`); err != nil {
return err
}