From 4cf7c459da183d1bcce092250f972cd2b52ddca5 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 15 Jul 2021 11:36:33 +0200 Subject: [PATCH] Allow running migration 20210711173657 multiple times to fix issues when it didn't completely run through previously --- pkg/migration/20210711173657.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/migration/20210711173657.go b/pkg/migration/20210711173657.go index a23f08e0..f5e67a6a 100644 --- a/pkg/migration/20210711173657.go +++ b/pkg/migration/20210711173657.go @@ -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