chore: unify migrate database way (#1530)

This commit is contained in:
Yaodong Yu
2023-02-09 19:28:15 +08:00
committed by GitHub
parent e7e0518517
commit e2b6e8ee6e
4 changed files with 88 additions and 51 deletions

View File

@ -25,8 +25,6 @@ import (
)
func InitDb() {
MigratePermissionRule()
existed := initBuiltInOrganization()
if !existed {
initBuiltInModel()
@ -36,6 +34,8 @@ func InitDb() {
initBuiltInApplication()
initBuiltInCert()
initBuiltInLdap()
} else {
MigrateDatabase()
}
initWebAuthn()