Foreign key constraints are not enabled by default. See https://github.com/marienfressinaud/FreshRSS/issues/579 See http://stackoverflow.com/questions/13534040/sqlite3-foreign-keys-on-pdo
@@ -77,6 +77,9 @@ class Minz_ModelPdo {
$db['password'],
$driver_options
);
+ if ($type === 'sqlite') {
+ $this->bd->exec('PRAGMA foreign_keys = ON;');
+ }
self::$sharedBd = $this->bd;
} catch (Exception $e) {
throw new Minz_PDOConnectionException(