Make tx DB upgrade schema consistent with install schema.

This commit is contained in:
Kailash Nadh 2022-07-02 16:16:23 +05:30
parent 0574a1b820
commit d3774d606a

View file

@ -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
}