From 510dd02a06a16c19d05539ef4832061605088265 Mon Sep 17 00:00:00 2001 From: Erik Date: Fri, 11 Aug 2017 11:34:18 +0800 Subject: [PATCH] Fix the quick start section of the orm/README.md Increase the init method by adding the `RunSyncdb` method to resolve the problem that the table is not created. --- orm/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/orm/README.md b/orm/README.md index fa7fdca1..6e808d2a 100644 --- a/orm/README.md +++ b/orm/README.md @@ -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() {