mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
fix(config): fill dialect field
This commit is contained in:
parent
0b3b56620c
commit
81e50f82ef
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,6 +9,7 @@ web2/dist/**/*
|
||||
/config.json
|
||||
/.dredd/config.json
|
||||
/database.bolt
|
||||
/database.boltdb
|
||||
.DS_Store
|
||||
node_modules/
|
||||
|
||||
|
@ -36,10 +36,13 @@ func InteractiveSetup(conf *util.ConfigType) {
|
||||
|
||||
switch db {
|
||||
case 1:
|
||||
conf.Dialect = util.DbDriverMySQL
|
||||
scanMySQL(conf)
|
||||
case 2:
|
||||
conf.Dialect = util.DbDriverBolt
|
||||
scanBoltDb(conf)
|
||||
case 3:
|
||||
conf.Dialect = util.DbDriverPostgres
|
||||
scanPostgres(conf)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user