Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在数据库表新增字段后,代码生成器生成错误(只有刚添加的字段,原来的字段消失不见) #165

Closed
aboutZZ opened this issue Jun 25, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@aboutZZ
Copy link

aboutZZ commented Jun 25, 2022

在数据库表新增字段后,代码生成器生成错误(只有刚添加的字段,原来的字段消失不见)

基本信息

  • ruoyi-vue-pro 版本:1.6.2
  • 操作系统:Win10
  • 数据库:PostgreSQL

复现步骤

  1. 代码生成页面中,点击导入,选择一张表导入
  2. 点击编辑配置字段,生成代码
  3. 在数据库中,给这张表中新增一个字段,例如:add_status
  4. 代码生成页面中,点击同步按钮
  5. 此时生成的字段只有刚添加的那个字段add_status,其余字段没了。
    截图
  6. 再次点击同步按钮,这次原先的字段恢复了,但是没有新增的字段add_status
  7. 再次点击同步按钮,又变成步骤5的状态了
  8. 再次点击同步按钮,又变成步骤6的状态了。。。循环。。。
@zipoopiz
Copy link

我也有这个问题. 最后是删了重新导入的

@YunaiV
Copy link
Owner

YunaiV commented Jul 1, 2022

get,可以 pr 修复下哈。

@YunaiV
Copy link
Owner

YunaiV commented Aug 19, 2022

已修复。

@YunaiV YunaiV closed this as completed Aug 19, 2022
@YunaiV YunaiV self-assigned this Aug 19, 2022
@YunaiV YunaiV added the bug Something isn't working label Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants