Skip to content

Commit 79e8ff4

Browse files
authored
Merge pull request laravel#4838 from dakira/fk-support
introduce sqlite foreign_key_constraints config option
2 parents 8c4293d + 5f7decf commit 79e8ff4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config/database.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
'driver' => 'sqlite',
3838
'database' => env('DB_DATABASE', database_path('database.sqlite')),
3939
'prefix' => '',
40+
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
4041
],
4142

4243
'mysql' => [

0 commit comments

Comments
 (0)