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

Commit e6f7c0b5 authored by Paul Sliwowski's avatar Paul Sliwowski Committed by The Android Automerger
Browse files

Fix alarm db upgrade.

Bug: 10724387
Change-Id: I38be806f35e874a6e5916296cf15abcb12cb9061
(cherry picked from commit a5a45210)
parent 3be61705
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -150,6 +150,9 @@ class ClockDatabaseHelper extends SQLiteOpenHelper {

            // Create new alarms table and copy over the data
            createAlarmsTable(db);
            createInstanceTable(db);
            createCitiesTable(db);

            Log.i("Copying old alarms to new table");
            String[] OLD_TABLE_COLUMNS = {
                    "_id",
@@ -193,10 +196,6 @@ class ClockDatabaseHelper extends SQLiteOpenHelper {

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

            // Add new tables
            createInstanceTable(db);
            createCitiesTable(db);
        }
    }