Fix init DB error

This commit is contained in:
chengxiao committed 2020-05-05 12:17:11 +08:00
1 parent 0b9976d6b4
commit b915ab8e7f
1 file changed
+1 -1
+1 -1
View File
@@ -20,7 +20,7 @@ func InitDb() error {
return err
}
sqlList := strings.Split(sql, ";")
for i := 0; i < len(sqlList); i++ {
for i := 0; i < len(sqlList) - 1; i++ {
if strings.Contains(sqlList[i], "--") {
fmt.Println(sqlList[i])
continue