-
Notifications
You must be signed in to change notification settings - Fork 405
Migrate Apple Watch complications from Realm to GRDB #4058
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: bgoncal <[email protected]>
Co-authored-by: bgoncal <[email protected]>
Co-authored-by: bgoncal <[email protected]>
Co-authored-by: bgoncal <[email protected]>
Co-authored-by: bgoncal <[email protected]>
Co-authored-by: bgoncal <[email protected]>
… initialization Co-authored-by: bgoncal <[email protected]>
|
@copilot Fix lint issues: |
…nsion access control Co-authored-by: bgoncal <[email protected]>
... Fixed all SwiftFormat lint issues in commit 16b7ca6:
|
|
The following added lines contain |
|
@copilot fix tests: |
Co-authored-by: bgoncal <[email protected]>
... Fixed build errors in commit 241ac53. The new GRDB files (
All types should now be in scope and the build should succeed. |
Summary
Migrates Apple Watch complications from Realm to GRDB database. All existing complications are automatically migrated on first app launch after update. New complications are saved directly to GRDB.
Changes:
WatchComplicationGRDBstruct with all functionality from Realm-basedWatchComplicationWatchComplicationTable.createIfNeeded()that copies all Realm complications to GRDB on first launchMigration Flow:
Screenshots
N/A - Backend change with no UI impact
Link to pull request in Documentation repository
Documentation: home-assistant/companion.home-assistant#
Any other notes
WatchComplicationmodel remains untouched for migration periodWatchComplicationGRDB.swift,WatchComplicationGRDB+Queries.swift,WatchComplicationTable.swift) are properly registered in Xcode project's build configurationOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.