/*
 * Copyright (c) Kacper Ziubryniewicz 2020-1-25
 */

package pl.szczodrzynski.edziennik.data.db.migration

import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import pl.szczodrzynski.edziennik.data.db.entity.Metadata.TYPE_ANNOUNCEMENT

class Migration68 : Migration(67, 68) {
    override fun migrate(database: SupportSQLiteDatabase) {
        /* Migration from crc16 to crc32 id */
        database.execSQL("DELETE FROM announcements")
        database.execSQL("DELETE FROM metadata WHERE thingType=$TYPE_ANNOUNCEMENT")
    }
}
