From c7169daeaf6047d4643625571e4749d753b06a5d Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Sun, 2 May 2021 15:56:43 +0200 Subject: [PATCH] Enable SQLite support for foreign keys - fixes #93 --- chat.php | 1 + 1 file changed, 1 insertion(+) diff --git a/chat.php b/chat.php index bf6c694..9d121ef 100644 --- a/chat.php +++ b/chat.php @@ -4305,6 +4305,7 @@ function check_db(){ send_fatal_error($I['pdo_sqliteextrequired']); } $db=new PDO('sqlite:' . SQLITEDBFILE, NULL, NULL, $options); + $db->exec('PRAGMA foreign_keys = ON;'); } }catch(PDOException $e){ try{