Thanks to visit codestin.com Credit goes to github.com
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 8035982 commit 9632882Copy full SHA for 9632882
database/mysql/mysql.go
@@ -156,7 +156,8 @@ func (m *Mysql) Lock() error {
156
return database.ErrLocked
157
}
158
159
- aid, err := database.GenerateAdvisoryLockId(m.config.DatabaseName)
+ aid, err := database.GenerateAdvisoryLockId(
160
+ fmt.Sprintf("%s:%s", m.config.DatabaseName, m.config.MigrationsTable)
161
if err != nil {
162
return err
163
@@ -180,7 +181,8 @@ func (m *Mysql) Unlock() error {
180
181
return nil
182
183
184
185
186
187
188
0 commit comments