summaryrefslogtreecommitdiffstats
path: root/models/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations')
-rw-r--r--models/migrations/v209.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/models/migrations/v209.go b/models/migrations/v209.go
index c42aba245b..b4295d62fa 100644
--- a/models/migrations/v209.go
+++ b/models/migrations/v209.go
@@ -78,6 +78,14 @@ func increaseCredentialIDTo410(x *xorm.Engine) error {
return nil
}
+ exist, err := x.IsTableExist("u2f_registration")
+ if err != nil {
+ return err
+ }
+ if !exist {
+ return nil
+ }
+
// Now migrate the old u2f registrations to the new format
type u2fRegistration struct {
ID int64 `xorm:"pk autoincr"`