From fbc06a1973c622520cc75778491fda5482cf96b2 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 17 Jan 2010 09:42:35 +0000 Subject: [PATCH] SQLite now supports foreign keys (3.6.19 onwards) --- core/database.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;