mirror of
https://github.com/beego/bee.git
synced 2024-12-22 10:00:50 +00:00
Update: fixing switch statement
Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
This commit is contained in:
parent
ea63bf253e
commit
042a4cf244
@ -212,7 +212,6 @@ func GenerateMigration(mname, upsql, downsql, curpath string) {
|
||||
switch strings.Title(DDL.String()) {
|
||||
case "Create":
|
||||
spec = strings.Replace(DDLSpecCreate, "{{StructName}}", utils.CamelCase(mname)+"_"+today, -1)
|
||||
break
|
||||
case "Alter":
|
||||
spec = strings.Replace(DDLSpecAlter, "{{StructName}}", utils.CamelCase(mname)+"_"+today, -1)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user