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

Add posibility to drop table IF EXISTS and CASCADE #773

Open
Tigrov opened this issue Nov 10, 2023 · 0 comments
Open

Add posibility to drop table IF EXISTS and CASCADE #773

Tigrov opened this issue Nov 10, 2023 · 0 comments
Milestone

Comments

@Tigrov
Copy link
Member

Tigrov commented Nov 10, 2023

Add two options for dropping a table

  1. IF EXISTS - drop table only if it exists
  2. CASCADE - drop also dependencies cascade

Suggestions for QueryBuilderInterface::dropTable()

  • Change argument string $table to array|string $tables and realize method for list of tables;
  • Add second argument $cascade = false and generate SQL query to drop tables and dependencies cascade;
  • Add new method QueryBuilderInterface::dropTableIfExists() with the same agruments and generate SQL query with IF EXISTS construction.
@Tigrov Tigrov added this to the 2.0.0 milestone Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant