Skip to content

Commit

Permalink
Rename v2.6.0 migration to v3.0.0, the next major release.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Jan 6, 2024
1 parent a6d55d6 commit fa2c840
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 files
Expand Down
4 changes: 2 additions & 2 deletions internal/migrations/v2.6.0.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 err
Expand Down
File renamed without changes.

0 comments on commit fa2c840

Please sign in to comment.