Modern Apps git

← Modern-Apps.git

appstore: register DB migrations via DatabaseMigrations companion (harden)

Commit
d6167ee39b5bdf6457d3a66b6b83486f7dfdc6fa
Author
vayun-mathur <[email protected]>
When
2026-08-16 04:15 UTC (3 months ago)
Parents
885a9fd

Diff

appstore/src/main/java/com/vayunmathur/appstore/data/AppDatabase.kt
diff --git a/appstore/src/main/java/com/vayunmathur/appstore/data/AppDatabase.kt b/appstore/src/main/java/com/vayunmathur/appstore/data/AppDatabase.ktindex f632d9803e..17ad34ccb1 100644--- a/appstore/src/main/java/com/vayunmathur/appstore/data/AppDatabase.kt+++ b/appstore/src/main/java/com/vayunmathur/appstore/data/AppDatabase.kt@@ -325,8 +325,8 @@ abstract class AppDatabase : RoomDatabase() {     abstract fun pinnedStampDao(): PinnedStampDao     abstract fun accrescentTrustDao(): AccrescentTrustDao -    companion object {-        val migrations = listOf(+    companion object : com.vayunmathur.library.util.DatabaseMigrations {+        override val migrations = listOf(             object : Migration(1, 2) {                 override fun migrate(db: SupportSQLiteDatabase) {                     db.execSQL("DROP TABLE IF EXISTS FavoriteEntity")