Foreign key restraints in SQLite
Sam Ciaramilaro • May 7, 2015
Snippets# To turn on/off foreign key restraints.
PRAGMA foreign_keys = ON; -- or OFF
// In Laravel, you can use the following code to turn on/off foreign key restraints.
DB::statement('PRAGMA foreign_keys = ON;');