refactor🎨 删除模版生成提示代码
This commit is contained in:
1 parent
65b86353e3
commit
cd29c1728d
1 file changed
-14
@@ -43,20 +43,6 @@ func _1619418811873Test(db *gorm.DB, version string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// TODO: 例如 修改表字段 使用过程中请删除此段代码
|
||||
//err := tx.Migrator().RenameColumn(&models.SysConfig{}, "config_id", "id")
|
||||
//if err != nil {
|
||||
// return err
|
||||
//}
|
||||
|
||||
// TODO: 例如 新增表结构 使用过程中请删除此段代码
|
||||
//err = tx.Debug().Migrator().AutoMigrate(
|
||||
// new(models.CasbinRule),
|
||||
// )
|
||||
//if err != nil {
|
||||
// return err
|
||||
//}
|
||||
|
||||
return tx.Create(&common.Migration{
|
||||
Version: version,
|
||||
}).Error
|
||||
|
||||
Reference in new issue
Block a user