修改更新程序

pull/51/head
Minho 2017-05-25 15:49:41 +08:00
parent dc343cb416
commit d5349f9769
1 changed files with 8 additions and 2 deletions

View File

@ -23,6 +23,14 @@ func Update() {
}else if adapter == "sqlite3" { }else if adapter == "sqlite3" {
sqliteUpdate() sqliteUpdate()
} }
o := orm.NewOrm()
b,err := ioutil.ReadFile("./data/data.sql")
if err != nil {
panic(err.Error())
os.Exit(1)
}
fmt.Println("update successed.") fmt.Println("update successed.")
os.Exit(0) os.Exit(0)
@ -98,6 +106,4 @@ func sqliteUpdate() {
os.Exit(1) os.Exit(1)
} }
} }
os.Exit(1)
} }