db
db copied to clipboard
Add posibility to drop table `IF EXISTS` and `CASCADE`
Add two options for dropping a table
-
IF EXISTS
- drop table only if it exists -
CASCADE
- drop also dependencies cascade
Suggestions for QueryBuilderInterface::dropTable()
- Change argument
string $table
toarray|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 withIF EXISTS
construction.