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

Function InitAlertDB

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

Source from the content-addressed store, hash-verified

105}
106
107func InitAlertDB() {
108 m := gormigrate.New(global.AlertDB, gormigrate.DefaultOptions, []*gormigrate.Migration{
109 migrations.MigrateAlertMethodConfigIDs,
110 migrations.MigrateAlertLogTaskMethodConfigIDs,
111 migrations.AddAlertAuditUser,
112 })
113 if err := m.Migrate(); err != nil {
114 global.LOG.Error(err)
115 panic(err)
116 }
117}

Callers 1

InitFunction · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected