|
@@ -70,7 +70,7 @@ class NCManageDatabase: NSObject {
|
|
|
let config = Realm.Configuration(
|
|
|
fileURL: dirGroup?.appendingPathComponent(NCGlobal.shared.appDatabaseNextcloud + "/" + databaseName),
|
|
|
schemaVersion: databaseSchemaVersion,
|
|
|
- objectTypes: [tableMetadata.self, tableLocalFile.self, tableDirectory.self, tableTag.self, tableAccount.self, tableCapabilities.self, tablePhotoLibrary.self, tableE2eEncryption.self, tableE2eEncryptionLock.self, tableShare.self, tableChunk.self, tableAvatar.self, tableDashboardWidget.self, tableDashboardWidgetButton.self, NCDBLayoutForView.self]
|
|
|
+ objectTypes: [tableMetadata.self, tableLocalFile.self, tableDirectory.self, tableTag.self, tableAccount.self, tableCapabilities.self, tablePhotoLibrary.self, tableE2eEncryption.self, tableE2eEncryptionLock.self, tableE2eMetadata.self, tableShare.self, tableChunk.self, tableAvatar.self, tableDashboardWidget.self, tableDashboardWidgetButton.self, NCDBLayoutForView.self]
|
|
|
)
|
|
|
|
|
|
Realm.Configuration.defaultConfiguration = config
|
|
@@ -194,6 +194,7 @@ class NCManageDatabase: NSObject {
|
|
|
self.clearTable(tableDirectory.self, account: account)
|
|
|
self.clearTable(tableE2eEncryption.self, account: account)
|
|
|
self.clearTable(tableE2eEncryptionLock.self, account: account)
|
|
|
+ self.clearTable(tableE2eMetadata.self, account: account)
|
|
|
self.clearTable(tableExternalSites.self, account: account)
|
|
|
self.clearTable(tableGPS.self, account: nil)
|
|
|
self.clearTable(TableGroupfolders.self, account: account)
|