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.Database;
|
||||
|
@ -8,12 +8,8 @@ import net.foucry.pilldroid.dao.PrescriptionsDAO;
|
|||
import net.foucry.pilldroid.models.Prescription;
|
||||
|
||||
@Database(
|
||||
version = 3,
|
||||
entities = {Prescription.class},
|
||||
autoMigrations = {
|
||||
@AutoMigration(from = 1, to = 2),
|
||||
@AutoMigration(from = 2, to = 3),
|
||||
}
|
||||
version = 1,
|
||||
entities = {Prescription.class}
|
||||
)
|
||||
|
||||
public abstract class PrescriptionDatabase extends RoomDatabase {
|
Loading…
Reference in a new issue