mirror of
https://github.com/whyorean/AuroraStore.git
synced 2025-12-23 22:27:55 -05:00
Export the database schema
Also set .gitlab-ci.yml to publish them at every build for convenience. The exports should be committed (manually) to the git repository right after an increase in database version. Having the exports enables using autoMigrations when possible, for the future database migrations.
This commit is contained in:
@@ -17,6 +17,7 @@ assembleDebug:
|
||||
artifacts:
|
||||
paths:
|
||||
- $DEBUG_BINARY_PATH
|
||||
- 'app/schemas/com.aurora.store.data.room.AuroraDatabase/'
|
||||
|
||||
uploadDebug:
|
||||
stage: upload
|
||||
|
||||
@@ -131,6 +131,10 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("room.schemaLocation", "$projectDir/schemas")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
//Google's Goodies
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.aurora.store.data.room.update.UpdateDao
|
||||
@Database(
|
||||
entities = [Download::class, Favourite::class, Update::class],
|
||||
version = 5,
|
||||
exportSchema = false
|
||||
exportSchema = true
|
||||
)
|
||||
@TypeConverters(DownloadConverter::class)
|
||||
abstract class AuroraDatabase : RoomDatabase() {
|
||||
|
||||
Reference in New Issue
Block a user