mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-24 14:06:36 +08:00
数据库升级时表名不区分大小写/增加一些注释
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
package setup
|
||||
|
||||
import "strings"
|
||||
|
||||
type SQLDumpResult struct {
|
||||
Tables []*SQLTable `json:"tables"`
|
||||
}
|
||||
|
||||
func (this *SQLDumpResult) FindTable(tableName string) *SQLTable {
|
||||
for _, table := range this.Tables {
|
||||
if table.Name == tableName {
|
||||
if strings.ToLower(table.Name) == strings.ToLower(tableName) {
|
||||
return table
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user