mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 18:40:55 +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:
commit
33ad8d5db4
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user