Skip to content

Commit

Permalink
Add ErrMigrationAlreadyLocked
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed Jun 27, 2022
1 parent 92fd19f commit 88ef3e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dbump.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import (
"sort"
)

// ErrMigrationAlreadyLocked is returned only when migration lock is already hold.
// This might be in a situation when previous dbump migration has not finished properly
// or just someone already holds this lock. See Config.UseForce to force lock acquire.
var ErrMigrationAlreadyLocked = errors.New("migration is locked already")

// MigrationDelimiter separates apply and revert queries inside a migration step/file.
// Is exported just to be used by https://github.com/cristalhq/dbumper
const MigrationDelimiter = `--- apply above / revert below ---`
Expand Down

0 comments on commit 88ef3e4

Please sign in to comment.