private void createECommerceTables(SQLiteDatabase sqlitedatabase)
 {
     sqlitedatabase.execSQL("DROP TABLE IF EXISTS transaction_events;");
     sqlitedatabase.execSQL(PersistentEventStore.access$400());
     sqlitedatabase.execSQL("DROP TABLE IF EXISTS item_events;");
     sqlitedatabase.execSQL(PersistentEventStore.access$500());
 }
 public void onCreate(SQLiteDatabase sqlitedatabase)
 {
     sqlitedatabase.execSQL("DROP TABLE IF EXISTS events;");
     sqlitedatabase.execSQL(PersistentEventStore.access$000());
     sqlitedatabase.execSQL("DROP TABLE IF EXISTS session;");
     sqlitedatabase.execSQL(PersistentEventStore.access$100());
     sqlitedatabase.execSQL("DROP TABLE IF EXISTS install_referrer;");
     sqlitedatabase.execSQL("CREATE TABLE install_referrer (referrer TEXT PRIMARY KEY NOT NULL);");
     if (databaseVersion > 1)
     {
         createCustomVariableTables(sqlitedatabase);
     }
     if (databaseVersion > 2)
     {
         createECommerceTables(sqlitedatabase);
     }
 }
    void createCustomVariableTables(SQLiteDatabase sqlitedatabase)
    {
        sqlitedatabase.execSQL("DROP TABLE IF EXISTS custom_variables;");
        sqlitedatabase.execSQL(PersistentEventStore.access$200());
        sqlitedatabase.execSQL("DROP TABLE IF EXISTS custom_var_cache;");
        sqlitedatabase.execSQL(PersistentEventStore.access$300());
        for (int i = 1; i <= 5; i++)
        {
            ContentValues contentvalues = new ContentValues();
            contentvalues.put("event_id", Integer.valueOf(0));
            contentvalues.put("cv_index", Integer.valueOf(i));
            contentvalues.put("cv_name", "");
            contentvalues.put("cv_scope", Integer.valueOf(3));
            contentvalues.put("cv_value", "");
            sqlitedatabase.insert("custom_var_cache", "event_id", contentvalues);
        }

    }