feat: update system

This commit is contained in:
wenjianzhang committed 2020-07-06 18:13:29 +08:00
1 parent 8a1614f64d
commit 916e30005f
10 files changed
+678 -688

No files matched your search

+1
View File
@@ -25,6 +25,7 @@ func InitDb() error {
continue
}
sql := strings.Replace(sqlList[i]+";", "\n", "", 0)
sql = strings.TrimSpace(sql)
if err = orm.Eloquent.Exec(sql).Error; err != nil {
if !strings.Contains(err.Error(), "Query was empty") {
return err