MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / migrateLOGDB

Function migrateLOGDB

model/main.go:312–318  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

310}
311
312func migrateLOGDB() error {
313 var err error
314 if err = LOG_DB.AutoMigrate(&Log{}); err != nil {
315 return err
316 }
317 return nil
318}
319
320func closeDB(db *gorm.DB) error {
321 sqlDB, err := db.DB()

Callers 1

InitLogDBFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected