Skip to content

Commit 10b4d40

Browse files
committed
Use foreign_key_constraints config variable
1 parent 8582603 commit 10b4d40

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/TestCase.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ protected function getPackageProviders($app)
3232
protected function setUpDatabase()
3333
{
3434
config(['database.default' => 'testing']);
35-
36-
DB::statement('PRAGMA foreign_keys = ON');
35+
config(['database.connections.testing.foreign_key_constraints' => true]);
3736

3837
$this->artisan('migrate', [
3938
'--database' => 'testing',

0 commit comments

Comments
 (0)