diff --git a/app/src/main/java/io/legado/app/data/AppDatabase.kt b/app/src/main/java/io/legado/app/data/AppDatabase.kt index 94ee65939..afc847d29 100644 --- a/app/src/main/java/io/legado/app/data/AppDatabase.kt +++ b/app/src/main/java/io/legado/app/data/AppDatabase.kt @@ -51,7 +51,7 @@ abstract class AppDatabase : RoomDatabase() { fun createDatabase(context: Context) = Room.databaseBuilder(context, AppDatabase::class.java, DATABASE_NAME) .fallbackToDestructiveMigration() - .addMigrations(*DatabaseMigration.migrations) + .addMigrations(*DatabaseMigrations.migrations) .allowMainThreadQueries() .addCallback(dbCallback) .build() diff --git a/app/src/main/java/io/legado/app/data/DatabaseMigration.kt b/app/src/main/java/io/legado/app/data/DatabaseMigrations.kt similarity index 99% rename from app/src/main/java/io/legado/app/data/DatabaseMigration.kt rename to app/src/main/java/io/legado/app/data/DatabaseMigrations.kt index 01ad5caa1..e3f82759d 100644 --- a/app/src/main/java/io/legado/app/data/DatabaseMigration.kt +++ b/app/src/main/java/io/legado/app/data/DatabaseMigrations.kt @@ -4,7 +4,7 @@ import androidx.room.migration.Migration import androidx.sqlite.db.SupportSQLiteDatabase import io.legado.app.constant.AppConst -object DatabaseMigration { +object DatabaseMigrations { val migrations: Array by lazy { arrayOf(