You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bring back v4's future deletion paranoid option as a opt-in feature #11336
Is your feature request related to a problem? Please describe.
In Sequelize v4, a feature that called "Future Deletion" existed, and it no longer exists in v5, since it was considered problematic (see #8496 for details).
In Sequelize v4, if deletedAt was set to a timestamp in the future, then a record would not be considered as deleted. This was useful to schedule records for deletion. But as pointed out in this issue, it can lead to consistency issues. Thus, it was removed in v5 in favor of considering a record as deleted if deletedAt is set at all.
Describe the solution you'd like
There should be an opt-in option to enable the Future Deletion feature.
Why should this be in Sequelize
Because it was part of Sequelize in the past, and might hinder a few users from upgrading, causing them to be stuck on v4.
Describe alternatives you've considered
Alternatives would be to rewrite one's own codebase to stop needing this feature directly, perhaps using another column for this, or another approach.
Rejected, we discussed this in previous issues extensively.
IIRC I introduced that feature because I needed it in one of my projects. Now I suggest for those cases you can just add an extra column, with scopes you should be able to handle that.
Activity
sushantdhiman commentedon Aug 21, 2019
Rejected, we discussed this in previous issues extensively.
IIRC I introduced that feature because I needed it in one of my projects. Now I suggest for those cases you can just add an extra column, with scopes you should be able to handle that.