Allow running migration 20210711173657 multiple times to fix issues when it didn't completely run through previously

This commit is contained in:
kolaente 2021-07-15 11:36:33 +02:00
parent 2a80e552cc
commit 4cf7c459da
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 0 deletions

View File

@ -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