We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
foreign_key_constraints
1 parent 8582603 commit 10b4d40Copy full SHA for 10b4d40
tests/TestCase.php
@@ -32,8 +32,7 @@ protected function getPackageProviders($app)
32
protected function setUpDatabase()
33
{
34
config(['database.default' => 'testing']);
35
-
36
- DB::statement('PRAGMA foreign_keys = ON');
+ config(['database.connections.testing.foreign_key_constraints' => true]);
37
38
$this->artisan('migrate', [
39
'--database' => 'testing',
0 commit comments