Remove migrate boxes Mailbox, Email, DetailEmail, State

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-06-30 15:24:51 +07:00
committed by Dat H. Pham
parent 8d83650f33
commit 28ea8aec76
6 changed files with 5 additions and 68 deletions
@@ -89,16 +89,5 @@ class NewEmailCacheManager extends CacheManagerInteraction {
_cacheClient.clearAllDataContainKey(key);
@override
Future<void> migrateHiveToIsolatedHive() async {
try {
final legacyMapItems = await _cacheClient.getMapItems(
isolated: false,
);
log('$runtimeType::migrateHiveToIsolatedHive(): Length of legacyMapItems: ${legacyMapItems.length}');
await _cacheClient.insertMultipleItem(legacyMapItems);
log('$runtimeType::migrateHiveToIsolatedHive(): ✅ Migrate Hive box "${_cacheClient.tableName}" → IsolatedHive DONE');
} catch (e) {
logError('$runtimeType::migrateHiveToIsolatedHive(): ❌ Migrate Hive box "${_cacheClient.tableName}" → IsolatedHive FAILED, Error: $e');
}
}
Future<void> migrateHiveToIsolatedHive() async {}
}
@@ -93,16 +93,5 @@ class OpenedEmailCacheManager extends CacheManagerInteraction {
_cacheClient.clearAllDataContainKey(key);
@override
Future<void> migrateHiveToIsolatedHive() async {
try {
final legacyMapItems = await _cacheClient.getMapItems(
isolated: false,
);
log('$runtimeType::migrateHiveToIsolatedHive(): Length of legacyMapItems: ${legacyMapItems.length}');
await _cacheClient.insertMultipleItem(legacyMapItems);
log('$runtimeType::migrateHiveToIsolatedHive(): ✅ Migrate Hive box "${_cacheClient.tableName}" → IsolatedHive DONE');
} catch (e) {
logError('$runtimeType::migrateHiveToIsolatedHive(): ❌ Migrate Hive box "${_cacheClient.tableName}" → IsolatedHive FAILED, Error: $e');
}
}
Future<void> migrateHiveToIsolatedHive() async {}
}