sequelize / cli

The Sequelize CLI
MIT License
2.53k stars 527 forks source link

feat: allow db:drop with force for PostgreSQL >= v13 #1490

Open jhony112 opened 5 months ago

jhony112 commented 5 months ago

Pull Request check-list

Please make sure to review and check all of these items:

Description of change

This pull request adds a new --force option to the Sequelize CLI for thedb:dropcommand, enabling forced dropping of PostgreSQL databases on server versions higher than 13. See manual

Motivation: Currently, the Sequelize CLI lacks the option to force-drop databases on PostgreSQL versions greater than 13. In some scenarios, such as automated testing environments or CI/CD pipelines, it's necessary to forcibly drop databases without prompting for confirmation, especially when the PostgreSQL server version is 13 or above.

Changes Made:

Testing:

jhony112 commented 5 months ago

@dpickett @jjulian @sushantdhiman please review 🙏🏽