Skip to content

Commit

Permalink
Support get version database
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhhdev authored and hoangdat committed Jan 3, 2024
1 parent afbb683 commit 2396093
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/database/hive_collections_database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ typedef OnStartMigrating = Function(int oldVersion, int newVersion);

/// This database does not support file caching!
class HiveCollectionsDatabase extends DatabaseApi {
static const int version = 6;
final String name;
final String? path;
final HiveCipher? key;
Expand Down Expand Up @@ -90,6 +89,8 @@ class HiveCollectionsDatabase extends DatabaseApi {

late CollectionBox<String> _seenDeviceKeysBox;

int get version => 6;

String get _clientBoxName => 'box_client';

String get _accountDataBoxName => 'box_account_data';
Expand Down

0 comments on commit 2396093

Please sign in to comment.