Skip to content

Commit 0ffa3ae

Browse files
authored
Merge pull request #383 from onepanelio/dev
fix: migration issue (into master)
2 parents 35982bf + a5cc3cf commit 0ffa3ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

db/20200626113635_update_cvat_workspace_template.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
v1 "github.com/onepanelio/core/pkg"
66
uid2 "github.com/onepanelio/core/pkg/util/uid"
77
"github.com/pressly/goose"
8+
"time"
89
)
910

1011
const cvatWorkspaceTemplate2 = `# Docker containers that are part of the Workspace
@@ -126,6 +127,8 @@ func init() {
126127
func Up20200626113635(tx *sql.Tx) error {
127128
// This code is executed when the migration is applied.
128129

130+
time.Sleep(2 * time.Second)
131+
129132
client, err := getClient()
130133
if err != nil {
131134
return err

0 commit comments

Comments
 (0)