config : update config

This commit is contained in:
zhangwenjian committed 2020-07-27 22:44:01 +08:00
1 parent 22124b236a
commit 8fbfaa6d1f
3 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -30,7 +30,7 @@ func (e *DBColumns) GetPage(pageSize int, pageIndex int) ([]DBColumns, int, erro
if config2.DatabaseConfig.Driver == "mysql" {
table = orm.Eloquent.Select("*").Table("information_schema.`COLUMNS`")
table = table.Where("table_schema= ? ", config2.DatabaseConfig.DBName)
table = table.Where("table_schema= ? ", config2.GenConfig.DBName)
if e.TableName != "" {
return nil, 0, errors.New("table name cannot be empty!")
@@ -57,7 +57,7 @@ func (e *DBColumns) GetList() ([]DBColumns, error) {
if config2.DatabaseConfig.Driver == "mysql" {
table = orm.Eloquent.Select("*").Table("information_schema.columns")
table = table.Where("table_schema= ? ", config2.DatabaseConfig.DBName)
table = table.Where("table_schema= ? ", config2.GenConfig.DBName)
table = table.Where("TABLE_NAME = ?", e.TableName)
} else {