/** Drops underlying database table using DAOs. */ public static void dropAllTables(SQLiteDatabase db, boolean ifExists) { ConversationDao.dropTable(db, ifExists); ChatMessageDao.dropTable(db, ifExists); UserDao.dropTable(db, ifExists); }
/** Creates underlying database table using DAOs. */ public static void createAllTables(SQLiteDatabase db, boolean ifNotExists) { ConversationDao.createTable(db, ifNotExists); ChatMessageDao.createTable(db, ifNotExists); UserDao.createTable(db, ifNotExists); }