Enable SQLite support for foreign keys - fixes #93
This commit is contained in:
1
chat.php
1
chat.php
@ -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{
|
||||||
|
Reference in New Issue
Block a user