Migration use Double instead of Long

Migration use Float instead of Double
This commit is contained in:
jacques 2022-03-12 21:28:11 +01:00
parent 6bf1d82318
commit 8728c79909

View file

@ -1,13 +1,24 @@
package net.foucry.pilldroid;
import androidx.room.AutoMigration;
import androidx.room.Database;
import androidx.room.RoomDatabase;
import androidx.room.migration.Migration;
import androidx.sqlite.db.SupportSQLiteDatabase;
import net.foucry.pilldroid.dao.MedicDAO;
import net.foucry.pilldroid.models.Medic;
@Database(entities = {Medic.class}, version = 2)
@Database(
version = 3,
entities = {Medic.class},
autoMigrations = {
@AutoMigration(from = 1, to = 2),
@AutoMigration(from = 2, to = 3),
},
exportSchema = true
)
public abstract class PilldroidDatabase extends RoomDatabase {
public abstract MedicDAO getMedicDAO();
public abstract MedicDAO getMedicDAO();
}