-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Enabled automatic id generation #117
Enabled automatic id generation #117
Conversation
Signed-off-by: Arnau Mora <arnyminer.z@gmail.com>
Please rebase/merge again, I updated dependencies in the dev branch |
…endar-when-adding-a-subscription # Conflicts: # app/build.gradle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this change need a migration and/or migrate automatically?
@rfc2822 It should work out without any issues. It's just for new subscriptions. The old ones directly retain the ids provided by the Android calendar. See here: icsx5/app/src/main/java/at/bitfire/icsdroid/db/entity/Subscription.kt Lines 51 to 72 in f290664
|
I meant whether this adds an AUTOINCREMENT to the SQLite database or something like that. Then we would get a new database schema and would have to add an (auto-)migration. |
Mmmh, I'm not sure, I'll look into it 😉 Edit: Yup, that's exactly what it does. It adds |
@rfc2822 Is the version already released? I mean, if only us have it, maybe we can just erase data and not have to add a new version and enable automatic migration |
True, it's not released yet, so this would work (we should do a manual extra test whether the release upgrade from the latest released version to now works smooth). But shouldn't the change also update https://github.com/bitfireAT/icsx5/blob/dev/app/schemas/at.bitfire.icsdroid.db.AppDatabase/1.json? |
Yes, I was waiting for your confirmation 😄 |
Signed-off-by: Arnau Mora <arnyminer.z@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work now!
Closes #116