修复初始化数据时问题

This commit is contained in:
linwenxiang committed 2021-03-05 17:03:56 +08:00
1 parent a1b74e3f6a
commit 86700cfd52
21 files changed
+20 -44

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ var (
}
)
// fixme 在您看不见代码的时候运行迁移,我觉得是不安全的,所以编译后将不包含所有迁移文件
// fixme 在您看不见代码的时候运行迁移,我觉得是不安全的,所以编译后最好不要去执行迁移
func init() {
StartCmd.PersistentFlags().StringVarP(&configYml, "config", "c", "config/settings.yml", "Start server with provided configuration file")
StartCmd.PersistentFlags().BoolVarP(&generate, "generate", "g", false, "generate migration file")