Closed tscloud closed 7 years ago
Need to explicitly turn on foreign key support. Done at the connection level. In onOpen() of MyDBHandler extends SQLiteOpenHelper do:
if (!db.isReadOnly()) { // Enable foreign key constraints db.execSQL("PRAGMA foreign_keys=ON;"); }
Need to explicitly turn on foreign key support. Done at the connection level. In onOpen() of MyDBHandler extends SQLiteOpenHelper do: