diff --git a/config/config.go b/config/config.go index 45e955a..fdf6e17 100644 --- a/config/config.go +++ b/config/config.go @@ -9,11 +9,12 @@ import ( type Configuration struct { Db struct { - Ip string `json:"DbIp"` - Port string `json:"DbPort"` - Name string `json:"DbName"` - User string `json:"DbUser"` - Password string `json:"DbPassword"` + Ip string `json:"DbIp"` + Port string `json:"DbPort"` + Name string `json:"DbName"` + User string `json:"DbUser"` + Password string `json:"DbPassword"` + AutoMigrate bool `json:"DbAutoMigrate"` } Listen struct { diff --git a/env_example.json b/env_example.json index 701bf63..27e331c 100644 --- a/env_example.json +++ b/env_example.json @@ -4,7 +4,8 @@ "DbPort": "5432", "DbName": "database", "DbUser": "user", - "DbPassword": "password" + "DbPassword": "password", + "AutoMigrate": "true" }, "Listen": { "HttpIp": "127.0.0.1",