Commit 33ad8d5d authored by astaxie's avatar astaxie Committed by GitHub

Merge pull request #2815 from wisererik/patch-1

Fix the quick start section of the orm/README.md
parents 33e6d577 510dd02a
...@@ -61,6 +61,9 @@ func init() { ...@@ -61,6 +61,9 @@ func init() {
// set default database // set default database
orm.RegisterDataBase("default", "mysql", "root:root@/my_db?charset=utf8", 30) orm.RegisterDataBase("default", "mysql", "root:root@/my_db?charset=utf8", 30)
// create table
orm.RunSyncdb("default", false, true)
} }
func main() { func main() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment