Closed wnortje closed 8 years ago
By default SQlite does not enforce foreign key constraints. This feature must be switched on every time a database connection is opened. The query to enable it is:
PRAGMA foreign_keys = ON;
More information here https://www.sqlite.org/foreignkeys.html#fk_enable.
By default SQlite does not enforce foreign key constraints. This feature must be switched on every time a database connection is opened. The query to enable it is:
More information here https://www.sqlite.org/foreignkeys.html#fk_enable.