Add FederatedCapabilities to extensions

Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
This commit is contained in:
Marcel Müller 2024-03-07 14:06:30 +01:00
Родитель acd3bcaff7
Коммит 27f250aa78
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -93,7 +93,7 @@ typedef void (^CreateConversationNotificationCompletionBlock)(void);
RLMRealmConfiguration *configuration = [RLMRealmConfiguration defaultConfiguration];
configuration.fileURL = databaseURL;
configuration.schemaVersion= kTalkDatabaseSchemaVersion;
configuration.objectClasses = @[TalkAccount.class, NCRoom.class, ServerCapabilities.class];
configuration.objectClasses = @[TalkAccount.class, NCRoom.class, ServerCapabilities.class, FederatedCapabilities.class];
configuration.migrationBlock = ^(RLMMigration *migration, uint64_t oldSchemaVersion) {
// At the very minimum we need to update the version with an empty block to indicate that the schema has been upgraded (automatically) by Realm
};

Просмотреть файл

@ -120,7 +120,7 @@
RLMRealmConfiguration *configuration = [RLMRealmConfiguration defaultConfiguration];
configuration.fileURL = databaseURL;
configuration.schemaVersion= kTalkDatabaseSchemaVersion;
configuration.objectClasses = @[TalkAccount.class, ServerCapabilities.class, NCRoom.class];
configuration.objectClasses = @[TalkAccount.class, NCRoom.class, ServerCapabilities.class, FederatedCapabilities.class];
configuration.migrationBlock = ^(RLMMigration *migration, uint64_t oldSchemaVersion) {
// At the very minimum we need to update the version with an empty block to indicate that the schema has been upgraded (automatically) by Realm
};