1
0
mirror of https://github.com/beego/bee.git synced 2025-06-12 10:00:41 +00:00

Adding dir parameter to migrate command

This commit is contained in:
2018-11-12 13:09:26 +01:00
parent e3e401cadd
commit 3d977edbb4
3 changed files with 25 additions and 16 deletions

View File

@ -44,7 +44,7 @@ func GenerateScaffold(sname, fields, currpath, driver, conn string) {
// Run the migration
beeLogger.Log.Infof("Do you want to migrate the database? [Yes|No] ")
if utils.AskForConfirmation() {
migrate.MigrateUpdate(currpath, driver, conn)
migrate.MigrateUpdate(currpath, driver, conn, "")
}
beeLogger.Log.Successf("All done! Don't forget to add beego.Router(\"/%s\" ,&controllers.%sController{}) to routers/route.go\n", sname, strings.Title(sname))
}