Skip to content

Commit 9c400e8

Browse files
authored
Merge pull request #709 from Vafilor/fix/migration
fix: issue where new migration ran before all others, causing issues
2 parents 91b9fb3 + f9bf162 commit 9c400e8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

db/go/20201102104048_update_cvat_reduce_vols.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"github.com/pressly/goose"
66
)
77

8-
func init() {
8+
func initialize20201102104048() {
99
if _, ok := initializedMigrations[20201102104048]; !ok {
1010
goose.AddMigration(Up20201102104048, Down20201102104048)
1111
initializedMigrations[20201102104048] = true

db/go/db.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ func Initialize() {
6767
initialize20201028145442()
6868
initialize20201028145443()
6969
initialize20201031165106()
70+
initialize20201102104048()
7071

7172
if err := client.DB.Close(); err != nil {
7273
log.Printf("[error] closing db %v", err)

0 commit comments

Comments
 (0)