Prepare config option to enable auto migrations

This commit is contained in:
Maximilian 2023-02-13 23:28:36 -06:00
parent b962bbdd88
commit cb786a6a56
2 changed files with 8 additions and 6 deletions

View File

@ -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 {

View File

@ -4,7 +4,8 @@
"DbPort": "5432",
"DbName": "database",
"DbUser": "user",
"DbPassword": "password"
"DbPassword": "password",
"AutoMigrate": "true"
},
"Listen": {
"HttpIp": "127.0.0.1",