|
@@ -77,6 +77,9 @@ class Minz_ModelPdo {
|
|
|
$db['password'],
|
|
$db['password'],
|
|
|
$driver_options
|
|
$driver_options
|
|
|
);
|
|
);
|
|
|
|
|
+ if ($type === 'sqlite') {
|
|
|
|
|
+ $this->bd->exec('PRAGMA foreign_keys = ON;');
|
|
|
|
|
+ }
|
|
|
self::$sharedBd = $this->bd;
|
|
self::$sharedBd = $this->bd;
|
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|
|
|
throw new Minz_PDOConnectionException(
|
|
throw new Minz_PDOConnectionException(
|