mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
rename Room Database
This commit is contained in:
parent
d36491fa9d
commit
bb173ce762
1 changed files with 3 additions and 7 deletions
|
@ -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 {
|
Loading…
Reference in a new issue