Unverified Commit 581a563c authored by Lunny Xiao's avatar Lunny Xiao Committed by GitHub
Browse files

Ignore the migrate if u2f_registration is not exist (#18760)

parent 27af864c
Showing with 8 additions and 0 deletions
+8 -0
......@@ -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"`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment