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

Commit 3d1ffd51 authored by Paul Sliwowski's avatar Paul Sliwowski Committed by Android (Google) Code Review
Browse files

Merge "Fix alarm db upgrade." into ics-ub-clock-amazon

parents 268648ae a5a45210
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);
        }
    }