1
0
mirror of https://github.com/beego/bee.git synced 2025-06-11 18:40:40 +00:00

support beego pro migration exec sql

This commit is contained in:
yitea
2020-07-11 17:44:39 +08:00
parent cf3c3bdc8b
commit 2c329fd606
2 changed files with 52 additions and 6 deletions

View File

@ -32,6 +32,8 @@ var CmdBeegoPro = &commands.Command{
func init() {
CmdBeegoPro.Flag.Var(&beegopro.SQL, "sql", "sql file path")
CmdBeegoPro.Flag.Var(&beegopro.SQLMode, "sqlmode", "sql mode")
CmdBeegoPro.Flag.Var(&beegopro.SQLModePath, "sqlpath", "sql mode path")
commands.AvailableCommands = append(commands.AvailableCommands, CmdBeegoPro)
}