Use constraints, delete chapters when deleting a Manga

This commit is contained in:
inorichi
2015-10-03 00:27:47 +02:00
parent 53f86c4f4b
commit b2a1ba777d
3 changed files with 11 additions and 1 deletions

View File

@@ -27,4 +27,10 @@ public class DbOpenHelper extends SQLiteOpenHelper {
public void onUpgrade(@NonNull SQLiteDatabase db, int oldVersion, int newVersion) {
// no impl
}
@Override
public void onConfigure(SQLiteDatabase db){
db.setForeignKeyConstraintsEnabled(true);
}
}