Update AppDatabase.java

内置接口,从内置数据库读取

Signed-off-by: guang518 <35475020+guang518@users.noreply.github.com>
pull/594/head
guang518 2 months ago committed by GitHub
parent 5f3d68b14e
commit e095b78c5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      app/src/main/java/com/fongmi/android/tv/db/AppDatabase.java

@ -94,7 +94,9 @@ public abstract class AppDatabase extends RoomDatabase {
.addMigrations(Migrations.MIGRATION_30_31)
.addMigrations(Migrations.MIGRATION_31_32)
.addMigrations(Migrations.MIGRATION_32_33)
.allowMainThreadQueries().fallbackToDestructiveMigration().build();
.allowMainThreadQueries().fallbackToDestructiveMigration()
.createFromAsset("database/prefilled_database.db")
.build();
}
public abstract KeepDao getKeepDao();

Loading…
Cancel
Save