mirror of
https://github.com/beego/bee.git
synced 2025-07-05 18:20:18 +00:00
Merge pull request #140 from WnP/beego-dev-changes
update migration.Sql to migration.SQL to match beego develop
This commit is contained in:
@ -28,8 +28,8 @@ func generateScaffold(sname, fields, crupath, driver, conn string) {
|
||||
upsql := ""
|
||||
downsql := ""
|
||||
if fields != "" {
|
||||
upsql = `m.Sql("CREATE TABLE ` + sname + "(" + generateSQLFromFields(fields) + `)");`
|
||||
downsql = `m.Sql("DROP TABLE ` + "`" + sname + "`" + `")`
|
||||
upsql = `m.SQL("CREATE TABLE ` + sname + "(" + generateSQLFromFields(fields) + `)");`
|
||||
downsql = `m.SQL("DROP TABLE ` + "`" + sname + "`" + `")`
|
||||
}
|
||||
generateMigration(sname, upsql, downsql, crupath)
|
||||
}
|
||||
|
Reference in New Issue
Block a user