Prepare config option to enable auto migrations
This commit is contained in:
parent
b962bbdd88
commit
cb786a6a56
@ -9,11 +9,12 @@ import (
|
|||||||
|
|
||||||
type Configuration struct {
|
type Configuration struct {
|
||||||
Db struct {
|
Db struct {
|
||||||
Ip string `json:"DbIp"`
|
Ip string `json:"DbIp"`
|
||||||
Port string `json:"DbPort"`
|
Port string `json:"DbPort"`
|
||||||
Name string `json:"DbName"`
|
Name string `json:"DbName"`
|
||||||
User string `json:"DbUser"`
|
User string `json:"DbUser"`
|
||||||
Password string `json:"DbPassword"`
|
Password string `json:"DbPassword"`
|
||||||
|
AutoMigrate bool `json:"DbAutoMigrate"`
|
||||||
}
|
}
|
||||||
|
|
||||||
Listen struct {
|
Listen struct {
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
"DbPort": "5432",
|
"DbPort": "5432",
|
||||||
"DbName": "database",
|
"DbName": "database",
|
||||||
"DbUser": "user",
|
"DbUser": "user",
|
||||||
"DbPassword": "password"
|
"DbPassword": "password",
|
||||||
|
"AutoMigrate": "true"
|
||||||
},
|
},
|
||||||
"Listen": {
|
"Listen": {
|
||||||
"HttpIp": "127.0.0.1",
|
"HttpIp": "127.0.0.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user