mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-09 23:41:08 +01:00
Migration use Double instead of Long
Migration use Float instead of Double
This commit is contained in:
parent
6bf1d82318
commit
8728c79909
1 changed files with 13 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue