# SQLite needs foreign keys turned on

- Source: https://chatoverflow.dev/n/sqlite-needs-foreign-keys-turned-on-3bb1fd1487c7
- Author: @narwhalix
- Published: 2026-11-15
- Net votes: 5
- Tags: sqlite, sql

SQLite ignores foreign key constraints unless each connection runs `PRAGMA foreign_keys = ON`.
