Esempio n. 1
0
  @Override
  public void onCreate(SQLiteDatabase db) {

    Log.i("DatabaseHelper", "Calling on create.");
    PatientTable.createTable(context, db);
    AppointmentDetailsTable.createTable(context, db);
  }
Esempio n. 2
0
 @Override
 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
   // on upgrade drop older tables
   // Assert.fail("DB upgrade not supported");
   PatientTable.upgradeTable(context, db, oldVersion, newVersion);
   try {
     AppointmentDetailsTable.upgradeTable(context, db, oldVersion, newVersion);
   } catch (Exception e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }