MCPcopy Index your code
hub / github.com/1Panel-dev/1Panel / Init

Function Init

agent/init/migration/migrate.go:10–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func Init() {
11 InitAgentDB()
12 InitTaskDB()
13 InitAlertDB()
14 global.LOG.Info("Migration run successfully")
15}
16
17func InitAgentDB() {
18 m := gormigrate.New(global.DB, gormigrate.DefaultOptions, []*gormigrate.Migration{

Callers

nothing calls this directly

Calls 3

InitAgentDBFunction · 0.85
InitTaskDBFunction · 0.85
InitAlertDBFunction · 0.85

Tested by

no test coverage detected