Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OneBot] Migrating to Realm #752

Merged
merged 8 commits into from
Feb 4, 2025
Merged

[OneBot] Migrating to Realm #752

merged 8 commits into from
Feb 4, 2025

Conversation

DarkRRb
Copy link
Contributor

@DarkRRb DarkRRb commented Feb 4, 2025

WARNING: BREAKING CHANGE

You can use DatabaseShift to migrate LiteDB database files to Realm.

To developers

When modifying the MessageRecord, you must increment the SchemaVersion. Beyond simply adding or removing fields (Realm will automatically assign default values, but if complex processing is required, you must also implement the migration logic in the MigrationCallback), you should add migration logic in the MigrationCallback to handle transitions from all previous schema versions to the current version.

@DarkRRb DarkRRb merged commit ed087a8 into master Feb 4, 2025
11 checks passed
@DarkRRb DarkRRb deleted the darkrrb/feat/realm branch February 4, 2025 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants