Skip to content

Commit 0d507cb

Browse files
authored
Update gormigrate.go
1 parent ae55e34 commit 0d507cb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

gormigrate.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ func (g *Gormigrate) Migrate() error {
125125
}
126126
return g.commit()
127127
}
128-
128+
129+
if g.db.Dialect().GetName() != "clickhouse" {
130+
g.begin()
131+
}
129132
for _, migration := range g.migrations {
130133
if g.db.Dialect().GetName() == "clickhouse" {
131134
g.begin()

0 commit comments

Comments
 (0)