mirror of
https://github.com/beego/bee.git
synced 2025-07-05 18:20:18 +00:00
update migration.Sql to migration.SQL to match beego develop
This commit is contained in:
4
g.go
4
g.go
@ -166,8 +166,8 @@ func generateCode(cmd *Command, args []string) int {
|
||||
upsql := ""
|
||||
downsql := ""
|
||||
if fields != "" {
|
||||
upsql = `m.Sql("CREATE TABLE ` + mname + "(" + generateSQLFromFields(fields.String()) + `)");`
|
||||
downsql = `m.Sql("DROP TABLE ` + "`" + mname + "`" + `")`
|
||||
upsql = `m.SQL("CREATE TABLE ` + mname + "(" + generateSQLFromFields(fields.String()) + `)");`
|
||||
downsql = `m.SQL("DROP TABLE ` + "`" + mname + "`" + `")`
|
||||
}
|
||||
generateMigration(mname, upsql, downsql, curpath)
|
||||
case "controller":
|
||||
|
Reference in New Issue
Block a user