Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Upstream
Gitea
Commits
581a563c
Unverified
Commit
581a563c
authored
3 years ago
by
Lunny Xiao
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Ignore the migrate if u2f_registration is not exist (#18760)
parent
27af864c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/migrations/v209.go
+8
-0
models/migrations/v209.go
with
8 additions
and
0 deletions
+8
-0
models/migrations/v209.go
View file @
581a563c
...
...
@@ -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"`
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment