Allow running migration 20210711173657 multiple times to fix issues when it didn't completely run through previously
This commit is contained in:
parent
2a80e552cc
commit
4cf7c459da
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,8 @@ func init() {
|
|||
ID: "20210711173657",
|
||||
Description: "Add user tokens table",
|
||||
Migrate: func(tx *xorm.Engine) error {
|
||||
_ = tx.DropTables(&userTokens20210711173657{}) // Allow running this migration multiple times
|
||||
|
||||
err := tx.Sync2(userTokens20210711173657{})
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue