data: Fixed delete not working due to missing foreign keys pragma

This commit is contained in:
Eberhard Graether
2016-01-27 14:12:25 +01:00
parent 6cadab1b23
commit 8044f5cb5f
+2
View File
@@ -11,6 +11,8 @@
SqliteStorage::SqliteStorage(const std::string& dbFilePath)
{
m_database.open(dbFilePath.c_str());
m_database.execDML("PRAGMA foreign_keys=ON;");
}
SqliteStorage::~SqliteStorage()