Foreign key restraints in SQLite
Published
in
Code
on May 7, 2015
To turn on/off foreign key restraints.
PRAGMA foreign_keys = ON; // or OFF
Using Laravel:
DB::statement("PRAGMA foreign_keys = ON")