-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
DatabaseStorageModule not working correctly #3506
DatabaseStorageModule not working correctly #3506
Conversation
50f7b7d
to
f963e51
Compare
@rapterjet2004 without having taken a deeper look into it, it seems you didn't implement a DB migration to "9" which is needed I think either an auto migration or an actual one. |
072b202
to
2fe8f88
Compare
- Created MigrationsTest - Created Manual Migration from 9 to 10 - New Database has additional primary key Signed-off-by: Julius Linus <[email protected]>
cb1839e
to
857d356
Compare
app/schemas/com.nextcloud.talk.data.source.local.TalkDatabase/9.json
Outdated
Show resolved
Hide resolved
Signed-off-by: rapterjet2004 <[email protected]>
Signed-off-by: rapterjet2004 <[email protected]>
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/3506-talk.apk |
i suggest to not merge this PR in favor of #3569 Anyway good catch Julius 👍 👍 |
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! |
Room was overwriting old data in
ArbitraryStorage
, because there was a conflict detected inArbitraryStoragesDao
@Insert(onConflict = OnConflictStrategy.REPLACE)
. This was because the composite primary key wasn't including the conversation token as well.primaryKeys = ["accountIdentifier", "key"]
ToDo
Before
issue-3506-before.mp4
After
issue-3506-after.mp4
🏁 Checklist
/backport to stable-xx.x