mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 06:57:35 +08:00
support sync database structure when starting web server
This commit is contained in:
@@ -116,8 +116,9 @@ type Config struct {
|
||||
EnableRequestLog bool
|
||||
|
||||
// Database
|
||||
DatabaseConfig *DatabaseConfig
|
||||
EnableQueryLog bool
|
||||
DatabaseConfig *DatabaseConfig
|
||||
EnableQueryLog bool
|
||||
AutoUpdateDatabase bool
|
||||
|
||||
// Log
|
||||
LogModes []string
|
||||
@@ -300,6 +301,7 @@ func loadDatabaseConfiguration(config *Config, configFile *ini.File, sectionName
|
||||
|
||||
config.DatabaseConfig = dbConfig
|
||||
config.EnableQueryLog = getConfigItemBoolValue(configFile, sectionName, "log_query", false)
|
||||
config.AutoUpdateDatabase = getConfigItemBoolValue(configFile, sectionName, "auto_update_database", true)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user