Enable SQLite support for foreign keys - fixes #93

This commit is contained in:
Daniel Winzen
2021-05-02 15:56:43 +02:00
parent 0f30729dc2
commit c7169daeaf

View File

@ -4305,6 +4305,7 @@ function check_db(){
send_fatal_error($I['pdo_sqliteextrequired']); send_fatal_error($I['pdo_sqliteextrequired']);
} }
$db=new PDO('sqlite:' . SQLITEDBFILE, NULL, NULL, $options); $db=new PDO('sqlite:' . SQLITEDBFILE, NULL, NULL, $options);
$db->exec('PRAGMA foreign_keys = ON;');
} }
}catch(PDOException $e){ }catch(PDOException $e){
try{ try{