In SQLite for iOS (3.7.7) I am running these queries:
PRAGMA foreign_keys = ON; create table venue(id integer primary key not null, name text not null); create
I followed what Catcall said and it worked for me: setting foreign_keys by running
foreign_keys
stmt.execute("PRAGMA foreign_keys = ON");
each time I establish a connection to the database.