@ Override public void onCreate ( SQLiteDatabase db ) { ApptentiveLog . d ( DATABASE , "ApptentiveDatabase.onCreate(db)" ) ; db . execSQL ( SQL_CREATE_PAYLOAD_TABLE ) ; // Leave legacy tables in place for now. db . execSQL ( TABLE_CREATE_MESSAGE ) ; db . execSQL ( TABLE_CREATE_FILESTORE ) ; db . execSQL ( TABLE_CREATE_COMPOUND_FILESTORE ) ; }
This function is called only for new installs and onUpgrade is not called in that case . Therefore you must include the latest complete set of DDL here .