Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ddcc8e5 authored by Isaac Katzenelson's avatar Isaac Katzenelson Committed by Android (Google) Code Review
Browse files

Merge "Fix issue with db upgrade from 5 to 7." into klp-dev

parents 962a3d42 3422fd73
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -145,8 +145,8 @@ class ClockDatabaseHelper extends SQLiteOpenHelper {

        if (oldVersion <= VERSION_6) {
            // These were not used in DB_VERSION_6, so we can just drop them.
            db.execSQL("DROP TABLE " + INSTANCES_TABLE_NAME + ";");
            db.execSQL("DROP TABLE " + CITIES_TABLE_NAME + ";");
            db.execSQL("DROP TABLE IF EXISTS " + INSTANCES_TABLE_NAME + ";");
            db.execSQL("DROP TABLE IF EXISTS " + CITIES_TABLE_NAME + ";");

            // Create new alarms table and copy over the data
            createAlarmsTable(db);
@@ -195,7 +195,7 @@ class ClockDatabaseHelper extends SQLiteOpenHelper {
            cursor.close();

            Log.i("Dropping old alarm table");
            db.execSQL("DROP TABLE " + OLD_ALARMS_TABLE_NAME + ";");
            db.execSQL("DROP TABLE IF EXISTS " + OLD_ALARMS_TABLE_NAME + ";");
        }
    }