We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 148b2e4 commit de9baa3Copy full SHA for de9baa3
Extension/MySQLExtension.cpp
@@ -188,7 +188,7 @@ int MySQLExtension::createTable(QString table)
188
int MySQLExtension::removeTable(QString table)
189
{
190
// Run the drop query
191
- QSqlQuery query = m_database->exec("DROP TABLE " + table);
+ QSqlQuery query = m_database->exec("SET foreign_key_checks = 0; DROP TABLE " + table + "; SET foreign_key_checks = 1;");
192
193
return true;
194
}
README.md
@@ -8,7 +8,6 @@
8
- Export selected
9
10
## Bugs
11
-- Remove Table doesn't work if table has constraints (MySQL)
12
- SQL Splitter (Not sure if class works 100%)
13
14
## SQLite Database Schema
0 commit comments