@Override public void onCreate(SQLiteDatabase db) { if (BuildConfig.DEBUG) Log.d(TAG, "onCreate"); mOpenHelperCallbacks.onPreCreate(mContext, db); db.execSQL(SQL_CREATE_TABLE_ACCOUNT); db.execSQL(SQL_CREATE_TABLE_OPERATION); mOpenHelperCallbacks.onPostCreate(mContext, db); }
@Override public void onOpen(SQLiteDatabase db) { super.onOpen(db); if (!db.isReadOnly()) { setForeignKeyConstraintsEnabled(db); } mOpenHelperCallbacks.onOpen(mContext, db); }
@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { mOpenHelperCallbacks.onUpgrade(mContext, db, oldVersion, newVersion); }