feat: migrate permission data (#1083)

Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>

Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
Co-authored-by: Yang Luo <hsluoyz@qq.com>
This commit is contained in:
Yixiang Zhao
2022-09-03 16:45:58 +08:00
committed by GitHub
parent 4536fd0636
commit 0395b7e1a9
2 changed files with 30 additions and 0 deletions

View File

@ -25,6 +25,8 @@ import (
)
func InitDb() {
MigratePermissionRule()
existed := initBuiltInOrganization()
if !existed {
initBuiltInModel()