1
0
mirror of https://github.com/beego/bee.git synced 2025-07-05 18:20:18 +00:00

bee support create controllers

This commit is contained in:
astaxie
2014-08-09 01:37:55 +08:00
parent 50dfe40b94
commit 375eb44479
4 changed files with 138 additions and 4 deletions

View File

@ -35,7 +35,7 @@ func generateMigration(mname string, curpath string) {
migrationFilePath := path.Join(curpath, M_PATH)
if _, err := os.Stat(migrationFilePath); os.IsNotExist(err) {
// create migrations directory
if err := os.Mkdir(migrationFilePath, 0777); err != nil {
if err := os.MkdirAll(migrationFilePath, 0777); err != nil {
ColorLog("[ERRO] Could not create migration directory: %s\n", err)
os.Exit(2)
}