mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 03:47:54 +02:00
Remove prints from server startup
This commit is contained in:
parent
beb907d59e
commit
c77d5a5424
@ -53,11 +53,9 @@ func (db *DB) AddDatabaseTables() error {
|
||||
}
|
||||
|
||||
for _, model := range models {
|
||||
fmt.Printf("Beginning migration of %#v\n", model)
|
||||
if err := db.AutoMigrate(model); err != nil {
|
||||
return fmt.Errorf("db.AutoMigrate: %w", err)
|
||||
}
|
||||
fmt.Printf("Done migrating %#v\n", model)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user