mirror of
https://github.com/beego/bee.git
synced 2025-06-26 19:10:19 +00:00
fix judge sql ext bug
fix orm tag bug change the timestamp file path
This commit is contained in:
@ -76,7 +76,7 @@ func (c *RenderFile) write(filename string, buf string) (err error) {
|
||||
func isNeedOverwrite(fileName string) (flag bool) {
|
||||
seg := "//"
|
||||
ext := filepath.Ext(fileName)
|
||||
if ext == "sql" {
|
||||
if ext == ".sql" {
|
||||
seg = "--"
|
||||
}
|
||||
|
||||
@ -179,7 +179,7 @@ func getModelType(orm string) (inputType, goType, mysqlType, tag string) {
|
||||
}
|
||||
// user set orm tag
|
||||
if len(kv) == 2 {
|
||||
tag = orm
|
||||
tag = kv[1]
|
||||
}
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user