mirror of
https://github.com/knadh/listmonk.git
synced 2024-11-13 02:55:04 +08:00
Rename migration to v4.0.0
This commit is contained in:
parent
0331e3ce4e
commit
d9b4bae0a8
2 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ var migList = []migFunc{
|
|||
{"v2.4.0", migrations.V2_4_0},
|
||||
{"v2.5.0", migrations.V2_5_0},
|
||||
{"v3.0.0", migrations.V3_0_0},
|
||||
{"v3.1.0", migrations.V3_1_0},
|
||||
{"v4.0.0", migrations.V4_0_0},
|
||||
}
|
||||
|
||||
// upgrade upgrades the database to the current version by running SQL migration files
|
||||
|
|
|
@ -13,8 +13,8 @@ import (
|
|||
"github.com/lib/pq"
|
||||
)
|
||||
|
||||
// V3_1_0 performs the DB migrations.
|
||||
func V3_1_0(db *sqlx.DB, fs stuffbin.FileSystem, ko *koanf.Koanf, lo *log.Logger) error {
|
||||
// V4_0_0 performs the DB migrations.
|
||||
func V4_0_0(db *sqlx.DB, fs stuffbin.FileSystem, ko *koanf.Koanf, lo *log.Logger) error {
|
||||
if _, err := db.Exec(`
|
||||
CREATE EXTENSION IF NOT EXISTS pgcrypto;
|
||||
|
Loading…
Reference in a new issue