You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
221 B

package dao
import (
"fmt"
"go_fabric/model"
)
func migration() {
err := _db.Set("gorm:table_options", "charset=utf8mb4").
AutoMigrate(
&model.Poem{},
)
if err != nil {
fmt.Println("err", err)
}
return
}