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 table event(id integer primary key not null, name text not null,
venue_id integer references venue(id) on delete cascade);
But when I delete a venue, the children events are not deleted. Any ideas?