rename Room Database

This commit is contained in:
jacques 2022-03-16 17:07:40 +01:00
parent d36491fa9d
commit bb173ce762

View file

@ -1,4 +1,4 @@
package net.foucry.pilldroid; package net.foucry.pilldroid.databases;
import androidx.room.AutoMigration; import androidx.room.AutoMigration;
import androidx.room.Database; import androidx.room.Database;
@ -8,12 +8,8 @@ import net.foucry.pilldroid.dao.PrescriptionsDAO;
import net.foucry.pilldroid.models.Prescription; import net.foucry.pilldroid.models.Prescription;
@Database( @Database(
version = 3, version = 1,
entities = {Prescription.class}, entities = {Prescription.class}
autoMigrations = {
@AutoMigration(from = 1, to = 2),
@AutoMigration(from = 2, to = 3),
}
) )
public abstract class PrescriptionDatabase extends RoomDatabase { public abstract class PrescriptionDatabase extends RoomDatabase {