Publish 0.002 with a setup lookup, a name-only car, and the deeper car setup.

This commit is contained in:
RallyBlock committed 2026-10-22 23:10:06 -07:00
1 parent ffad275e13
commit ecd5c286dd
15 files changed
+478 -165

No files matched your search

@@ -234,9 +234,21 @@ internal val MIGRATION_8_9 = object : Migration(8, 9) {
}
}
internal val MIGRATION_9_10 = object : Migration(9, 10) {
override fun migrate(db: SupportSQLiteDatabase) {
db.execSQL("ALTER TABLE setup_sheets ADD COLUMN weightLf INTEGER")
db.execSQL("ALTER TABLE setup_sheets ADD COLUMN weightRf INTEGER")
db.execSQL("ALTER TABLE setup_sheets ADD COLUMN weightLr INTEGER")
db.execSQL("ALTER TABLE setup_sheets ADD COLUMN weightRr INTEGER")
db.execSQL("ALTER TABLE setup_sheets ADD COLUMN rideHeight REAL")
db.execSQL("ALTER TABLE setup_sheets ADD COLUMN pinion REAL")
db.execSQL("ALTER TABLE setup_sheets ADD COLUMN brakeFront REAL")
}
}
@Database(
entities = [RaceNight::class, RunLog::class, Car::class, SetupSheet::class],
version = 9,
version = 10,
exportSchema = false,
)
abstract class AppDatabase : RoomDatabase() {
@@ -245,7 +257,7 @@ abstract class AppDatabase : RoomDatabase() {
companion object {
fun create(context: Context): AppDatabase {
return Room.databaseBuilder(context, AppDatabase::class.java, "pitlog.db")
.addMigrations(MIGRATION_1_2, MIGRATION_2_3, MIGRATION_3_4, MIGRATION_4_5, MIGRATION_5_6, MIGRATION_6_7, MIGRATION_7_8, MIGRATION_8_9)
.addMigrations(MIGRATION_1_2, MIGRATION_2_3, MIGRATION_3_4, MIGRATION_4_5, MIGRATION_5_6, MIGRATION_6_7, MIGRATION_7_8, MIGRATION_8_9, MIGRATION_9_10)
.build()
}
}