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

逻辑删除是否考虑del_flag填充为时间戳或者该数据ID #6992

Closed
Chris-Arith opened this issue Jul 30, 2024 · 1 comment
Closed

Comments

@Chris-Arith
Copy link

版本号:

3.4.3-GA

问题描述:

后端为了保证数据的唯一性,加了业务字段 del_flag的联合索引,这样删除的数据就只能添加一次,再次删除后就无法添加该数据,
有没有考虑del_flag删除后填充为时间戳或者被删除数据的ID,生效数据填充为0,这样可以保证数据唯一且可以支持多次删除。

错误截图:

无。

友情提示:

  • 未按格式要求发帖、描述过于简单的,会被直接删掉;
  • 描述问题请图文并茂,方便我们理解并快速定位问题;
  • 如果使用的不是master,请说明你使用的分支;
@zhangdaiscott
Copy link
Member

暂时收录到 #1312

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants