diff --git a/core/database.class.php b/core/database.class.php index 70103f69..87c36d3d 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -52,7 +52,9 @@ class ImgQuerylet { class DBEngine { var $name = null; - public function init($db) {} + public function init($db) { + $db->execute("PRAGMA foreign_keys = ON;"); + } public function scoreql_to_sql($scoreql) { return $scoreql;