Skip to content

Commit

Permalink
feat: add listing init
Browse files Browse the repository at this point in the history
  • Loading branch information
cosinlink committed May 16, 2024
1 parent 36703ec commit c666fce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions database/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ func ConnectDBWithConfig(config *util.DBConfig) (*gorm.DB, error) {
if err = db.AutoMigrate(&GnfdBlock{}); err != nil {
panic(err)
}
if err = db.AutoMigrate(&Listing{}); err != nil {
panic(err)
}
return db.Debug(), nil
} else {
return nil, fmt.Errorf("dialect %s not supported", config.DBDialect)
Expand Down

0 comments on commit c666fce

Please sign in to comment.