We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 604248c commit 5709369Copy full SHA for 5709369
database/mysql/mysql.go
@@ -356,7 +356,7 @@ func (m *Mysql) Run(migration io.Reader) error {
356
}
357
358
func (m *Mysql) SetVersion(version int, dirty bool) error {
359
- tx, err := m.conn.BeginTx(context.Background(), &sql.TxOptions{Isolation: sql.LevelSerializable})
+ tx, err := m.conn.BeginTx(context.Background(), &sql.TxOptions{Isolation: sql.LevelReadCommitted})
360
if err != nil {
361
return &database.Error{OrigErr: err, Err: "transaction start failed"}
362
0 commit comments