delete SingularTable

删除单表配置模式
This commit is contained in:
xxj
2020-12-08 18:06:18 +08:00
parent a97443b09f
commit 3516c2b4a5
12 changed files with 33 additions and 53 deletions

View File

@@ -100,13 +100,9 @@ func MergeMysqlDbInfo() {
mycobra.IfReplace(rootCmd, "outdir", &dir) // 如果设置了,更新
config.SetOutDir(dir)
st := config.GetSingularTable()
mycobra.IfReplace(rootCmd, "singular", &st) // 如果设置了,更新
config.SetSingularTable(st)
fk := config.GetIsForeignKey()
mycobra.IfReplace(rootCmd, "foreign", &fk) // 如果设置了,更新
config.SetForeignKey(st)
config.SetForeignKey(fk)
funcKey := config.GetIsOutFunc()
mycobra.IfReplace(rootCmd, "fun", &funcKey) // 如果设置了,更新