From fa036fe6a4a19e290349f7f4f11b3a7463ed1ba0 Mon Sep 17 00:00:00 2001 From: Alessandro Carnevale Date: Wed, 4 Sep 2024 22:08:46 +0200 Subject: [PATCH 1/3] add a new Drink.recipe field --- .../main/java/com/alecarnevale/diplomatico/demo/drink/Drink.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/demo/app/src/main/java/com/alecarnevale/diplomatico/demo/drink/Drink.kt b/demo/app/src/main/java/com/alecarnevale/diplomatico/demo/drink/Drink.kt index 0adff69..53cf38c 100644 --- a/demo/app/src/main/java/com/alecarnevale/diplomatico/demo/drink/Drink.kt +++ b/demo/app/src/main/java/com/alecarnevale/diplomatico/demo/drink/Drink.kt @@ -6,4 +6,5 @@ import androidx.room.PrimaryKey @Entity internal data class Drink( @PrimaryKey val name: String, + val recipe: String = "", ) From eb4a20fed57229dfd21dc514fe980fbe81361ef8 Mon Sep 17 00:00:00 2001 From: Alessandro Carnevale Date: Wed, 4 Sep 2024 22:12:49 +0200 Subject: [PATCH 2/3] bump DrinkDatabase's version --- .../java/com/alecarnevale/diplomatico/demo/DrinkDatabase.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/app/src/main/java/com/alecarnevale/diplomatico/demo/DrinkDatabase.kt b/demo/app/src/main/java/com/alecarnevale/diplomatico/demo/DrinkDatabase.kt index cac59c5..72eb6ba 100644 --- a/demo/app/src/main/java/com/alecarnevale/diplomatico/demo/DrinkDatabase.kt +++ b/demo/app/src/main/java/com/alecarnevale/diplomatico/demo/DrinkDatabase.kt @@ -19,7 +19,7 @@ import com.alecarnevale.diplomatico.demo.entities.converters.DistilledConverter Drink::class, // this is a showcase for the base case: a change in a Room Entity must trigger a change in the report Cocktail::class, // this is a showcase for the nested classes case: when there is a change in a nested class then the report must change ], - version = 1, + version = 2, ) @TypeConverters( BaseSpiritConverter::class, From 5b6cb144e21aee7383dbfde031eecb05a4d4d8f9 Mon Sep 17 00:00:00 2001 From: Alessandro Carnevale Date: Sat, 19 Oct 2024 23:41:16 +0200 Subject: [PATCH 3/3] ./gradlew :demo:app:updateRoomVersionsDemoDebug --- demo/app/src/main/assets/diplomatico/report.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/app/src/main/assets/diplomatico/report.csv b/demo/app/src/main/assets/diplomatico/report.csv index 2de0602..8c08a98 100644 --- a/demo/app/src/main/assets/diplomatico/report.csv +++ b/demo/app/src/main/assets/diplomatico/report.csv @@ -1 +1 @@ -com.alecarnevale.diplomatico.demo.DrinkDatabase,V51ttQX6uluy3c+WV6Yqr/ehfOBz6hEqKU9+Zt/kTow= +com.alecarnevale.diplomatico.demo.DrinkDatabase,hMgPdcIvoB8Z/Ymolq6+iC5NJdiaJS4mcR8xqjAtRkk=