Skip to content

Commit

Permalink
Fix the quick start section of the orm/README.md
Browse files Browse the repository at this point in the history
Increase the init method by adding the `RunSyncdb` method to resolve the problem that the table is not created.
  • Loading branch information
wisererik committed Aug 11, 2017
1 parent d96289a commit 510dd02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions orm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 510dd02

Please sign in to comment.