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

Soft delete hopes to be compatible with unix(软删除希望兼容unix时间戳) #3248

Closed
shy1118999 opened this issue Jan 5, 2024 · 3 comments
Labels
done This issue is done, which may be release in next version. feature

Comments

@shy1118999
Copy link

Is your feature request related to a problem? Please describe.

Soft delete hopes to be compatible with unix(软删除希望兼容unix时间戳)

Many existing pages need to be transferred to goframe for development, but the database cannot be migrated.
Nowadays, many old projects are using timestamp or deletion flag to implement soft deletion, and the ORM of goframe is hard-coded delete_at is null. In this way, during the migration process of old projects, soft deletion has to be disabled and soft deletion logic is added in the business logic. (delete_at = 0)


现有很多页面需要转移到goframe进行开发,但是数据库不能做迁移
现在很多旧项目在使用时间戳或者删除flag实现的软删除,而goframe的ORM是写死的delete_at is null 这样在旧项目迁移过程中,就不得不禁用软删除 而在业务逻辑中添加软删除逻辑(delete_at = 0)

Describe the solution you'd like

It is recommended to add configuration items like GORM - Soft Delete


建议增加像GORM一样的配置项 GORM Soft Delete

@gqcn
Copy link
Member

gqcn commented Jan 30, 2024

@shy1118999 安排。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Arranged by @shy1118999.

@gqcn
Copy link
Member

gqcn commented Jan 31, 2024

#3293

@gqcn gqcn closed this as completed Jan 31, 2024
@gqcn gqcn added done This issue is done, which may be release in next version. and removed wip labels Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done This issue is done, which may be release in next version. feature
Projects
None yet
Development

No branches or pull requests

3 participants