add support for env variables to the DSL
This commit is contained in:
@ -68,15 +68,9 @@ func main() {
|
||||
// -- end of local database code --
|
||||
|
||||
// Uncomment these lines if you need automatic migration
|
||||
// err = gormDB.AutoMigrate(&pb.UserORM{})
|
||||
// err = gormDB.AutoMigrate(&pb.UserORM{}, &pb.ProductORM{})
|
||||
// if err != nil {
|
||||
// logger.Printf("failed to migrate user: %s", err)
|
||||
// log.Fatalln(err)
|
||||
// return
|
||||
// }
|
||||
// err = gormDB.AutoMigrate(&pb.ProductORM{})
|
||||
// if err != nil {
|
||||
// logger.Printf("failed to migrate product: %s", err)
|
||||
// logger.Printf("failed to auto migrate database: %s", err)
|
||||
// log.Fatalln(err)
|
||||
// return
|
||||
// }
|
||||
|
Reference in New Issue
Block a user