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

Function InitTaskDB

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

Source from the content-addressed store, hash-verified

95}
96
97func InitTaskDB() {
98 m := gormigrate.New(global.TaskDB, gormigrate.DefaultOptions, []*gormigrate.Migration{
99 migrations.AddTaskTable,
100 })
101 if err := m.Migrate(); err != nil {
102 global.LOG.Error(err)
103 panic(err)
104 }
105}
106
107func InitAlertDB() {
108 m := gormigrate.New(global.AlertDB, gormigrate.DefaultOptions, []*gormigrate.Migration{

Callers 1

InitFunction · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected