Feature Request: Possibility to change the DataType of deletedAt for Paranoid Tables #14257
Open
3 of 7 tasks
Labels
type: feature
For issues and PRs. For new features. Never breaking changes.
Issue Creation Checklist
Feature Description
The ability to set the DataType of the column used for Paranoid tables to boolean (or other types).
Is your feature request related to a problem? Please describe.
When using Sequelize ORM with pre-existent databases, if said database has the soft deletion method as a boolean column (or otherwise) the developer can't take full advantage of the ORM's Paranoid Tables feature because they can only change the name of the table's column, and not the dataType; leading to manually implementing the filters that are already present in said feature.
Describe the solution you'd like
Ideally the possibility to change the dataType of the column in the options object of a Model when init().
Why should this be in Sequelize
Because it is a very common situation when interacting with pre-existing databases and most of the time the developer can not modify the schema to fit Sequelize.
Feature Request Checklist
Is this feature dialect-specific?
Would you be willing to implement this feature by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: