1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 18:20:54 +00:00

Merge pull request #2815 from wisererik/patch-1

Fix the quick start section of the orm/README.md
This commit is contained in:
astaxie 2017-08-23 16:53:41 +08:00 committed by GitHub
commit 33ad8d5db4

View File

@ -61,6 +61,9 @@ func init() {
// set default database
orm.RegisterDataBase("default", "mysql", "root:root@/my_db?charset=utf8", 30)
// create table
orm.RunSyncdb("default", false, true)
}
func main() {