|
@@ -57,7 +57,7 @@ class NCManageDatabase: NSObject {
|
|
let config = Realm.Configuration(
|
|
let config = Realm.Configuration(
|
|
|
|
|
|
fileURL: dirGroup?.appendingPathComponent("\(k_appDatabaseNextcloud)/\(k_databaseDefault)"),
|
|
fileURL: dirGroup?.appendingPathComponent("\(k_appDatabaseNextcloud)/\(k_databaseDefault)"),
|
|
- schemaVersion: 27,
|
|
|
|
|
|
+ schemaVersion: 28,
|
|
|
|
|
|
// 10 : Version 2.18.0
|
|
// 10 : Version 2.18.0
|
|
// 11 : Version 2.18.2
|
|
// 11 : Version 2.18.2
|
|
@@ -77,6 +77,7 @@ class NCManageDatabase: NSObject {
|
|
// 25 : Version 2.21.3.1
|
|
// 25 : Version 2.21.3.1
|
|
// 26 : Version 2.22.0.4
|
|
// 26 : Version 2.22.0.4
|
|
// 27 : Version 2.22.0.7
|
|
// 27 : Version 2.22.0.7
|
|
|
|
+ // 28 : Version 2.22.3.5
|
|
|
|
|
|
migrationBlock: { migration, oldSchemaVersion in
|
|
migrationBlock: { migration, oldSchemaVersion in
|
|
// We haven’t migrated anything yet, so oldSchemaVersion == 0
|
|
// We haven’t migrated anything yet, so oldSchemaVersion == 0
|
|
@@ -667,7 +668,10 @@ class NCManageDatabase: NSObject {
|
|
resultCapabilities.versionString = capabilities.versionString
|
|
resultCapabilities.versionString = capabilities.versionString
|
|
resultCapabilities.endToEndEncryption = capabilities.isEndToEndEncryptionEnabled
|
|
resultCapabilities.endToEndEncryption = capabilities.isEndToEndEncryptionEnabled
|
|
resultCapabilities.endToEndEncryptionVersion = capabilities.endToEndEncryptionVersion
|
|
resultCapabilities.endToEndEncryptionVersion = capabilities.endToEndEncryptionVersion
|
|
-
|
|
|
|
|
|
+ for mimeType in capabilities.richdocumentsMimetypes {
|
|
|
|
+ resultCapabilities.RichdocumentsMimetypes.append(mimeType as! String)
|
|
|
|
+ }
|
|
|
|
+
|
|
if result == nil {
|
|
if result == nil {
|
|
realm.add(resultCapabilities)
|
|
realm.add(resultCapabilities)
|
|
}
|
|
}
|