2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 09:13:49 +08:00

fix: cli数据库迁移

This commit is contained in:
耗子
2024-12-29 15:13:50 +08:00
parent 40d6b2c090
commit cff89253c8
2 changed files with 13 additions and 4 deletions

View File

@@ -47,6 +47,7 @@ func initCli() (*app.Cli, error) {
cliService := service.NewCliService(koanf, db, appRepo, cacheRepo, userRepo, settingRepo, backupRepo, websiteRepo, databaseServerRepo)
cli := route.NewCli(cliService)
command := bootstrap.NewCli(cli)
appCli := app.NewCli(command)
gormigrate := bootstrap.NewMigrate(db)
appCli := app.NewCli(command, gormigrate)
return appCli, nil
}