From 90ccd0ac372b8e6571f71738c3e91ad9ec22f8f1 Mon Sep 17 00:00:00 2001 From: mateusz-bak <32651935+mateusz-bak@users.noreply.github.com> Date: Fri, 17 Mar 2023 10:37:15 +0000 Subject: [PATCH 1/2] fix: Migration 2.0 will be trigered when no challenges set --- .../migration_v1_to_v2_bloc.dart | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/logic/bloc/migration_v1_to_v2_bloc/migration_v1_to_v2_bloc.dart b/lib/logic/bloc/migration_v1_to_v2_bloc/migration_v1_to_v2_bloc.dart index 17691abbc..c7affcfc8 100644 --- a/lib/logic/bloc/migration_v1_to_v2_bloc/migration_v1_to_v2_bloc.dart +++ b/lib/logic/bloc/migration_v1_to_v2_bloc/migration_v1_to_v2_bloc.dart @@ -34,7 +34,7 @@ class MigrationV1ToV2Bloc return; } - if (v1BooksDbPath == null && v1YearsDbPath == null) { + if (v1BooksDbPath == null) { if (event.retrigger) { _showSnackbar(event.context, 'Migration error 1'); } @@ -45,13 +45,7 @@ class MigrationV1ToV2Bloc emit(const MigrationOnging()); - if (v1BooksDbPath != null) { - await _migrateBooksFromV1ToV2(v1BooksDbPath); - } else { - if (event.retrigger) { - _showSnackbar(event.context, 'Migration error 2'); - } - } + await _migrateBooksFromV1ToV2(v1BooksDbPath); if (v1YearsDbPath != null) { await _migrateYearsFromV1ToV2(event.context, v1YearsDbPath); From 33a88bd3b5c42ee6fbc9b9117d860e515a9647a2 Mon Sep 17 00:00:00 2001 From: mateusz-bak <32651935+mateusz-bak@users.noreply.github.com> Date: Fri, 17 Mar 2023 10:47:35 +0000 Subject: [PATCH 2/2] build: Bumped version to 2.03 (43) --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index a9dac8e80..f36e64379 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: A new Flutter project. publish_to: 'none' -version: 2.0.2+42 +version: 2.0.3+43 environment: sdk: '>=2.18.2 <3.0.0'