Commit 5174ea6d by zeeke

SQLite support for disable integrity check

This is a porting from yii framework version 1. I need it to run functional tests with fixtures.
parent 11826547
...@@ -139,7 +139,7 @@ class QueryBuilder extends \yii\db\QueryBuilder ...@@ -139,7 +139,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
*/ */
public function checkIntegrity($check = true, $schema = '', $table = '') public function checkIntegrity($check = true, $schema = '', $table = '')
{ {
throw new NotSupportedException(__METHOD__ . ' is not supported by SQLite.'); return 'PRAGMA foreign_keys='.(int)$check;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment