Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
queryInterface: Support DROP COLUMN IF EXISTS #11774
Comments
|
Thanks for the request; are you sure this is postgres-only? None of the other dialects support |
|
It depends :
|
|
Hmm okay, so at best it is not so straightforward in the other dialects; let's keep this request postgres-only then, to make things easier for everyone :) |
|
i would like to work on this, can you give any suggestions or just go for it on my own ? |
Issue Description
Is your feature request related to a problem? Please describe.
When doing some migrations, I would like to delete a column created in a previous migration.
However, this is not possible with the current code for some scenarios.
An example :
migration v3
migration v4
Describe the solution you'd like
Just add an option in the options of removeColumn
If I take the test in the codebase as example :
Why should this be in Sequelize
Just read what I said above ;)
Describe alternatives/workarounds you've considered
None as truncate removeColumn promise to deal with this case is horrible :(
Issue Template Checklist
Is this issue dialect-specific?
Would you be willing to resolve this issue by submitting a Pull Request?