modified: main_dc/yalarba/api_yal/internal/database/psql_db.go
set automigrate
This commit is contained in:
@@ -41,11 +41,8 @@ func autoMigrate(db *gorm.DB) error {
|
||||
zapLogger := logger.Get()
|
||||
zapLogger.Debug("Start migration")
|
||||
models := []interface{}{
|
||||
&models.User{},
|
||||
&models.Object{},
|
||||
&models.ObjectImage{},
|
||||
&models.Amenity{},
|
||||
&models.ObjectAmenity{},
|
||||
&models.Account{},
|
||||
&models.UpdateHistory{},
|
||||
}
|
||||
|
||||
for _, model := range models {
|
||||
|
||||
Reference in New Issue
Block a user