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); 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'