Skip to content

Commit a5cc3cf

Browse files
authored
Merge pull request #382 from onepanelio/fix/migration
fix: migration issue where workflow name clashed because of unix time…
2 parents f1b31c7 + 4bad6b8 commit a5cc3cf

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)