turn on foreign key constraints for sqlite3

This commit is contained in:
Uwe Steinmann 2013-06-07 21:48:51 +02:00
parent 9de4684d64
commit 115039718e

View File

@ -169,6 +169,9 @@ class SeedDMS_Core_DatabaseAccess {
case 'mysql':
$this->_conn->exec('SET NAMES utf8');
break;
case 'sqlite':
$this->_conn->exec('PRAGMA foreign_keys = ON');
break;
}
$this->_connected = true;
return true;