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
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

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