-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Skip dropping automatic indices #619
Skip dropping automatic indices #619
Conversation
They cannot be dropped manually
1f25ce6
to
0679e55
Compare
Thank you for the contribution, but maybe you can clearify, what exactly the problem is? I can not understand it. Upgrading from |
Sorry for not being clear. But I don't have the logcat anymore... |
@Unpublished, since you seem to know some things about the SQLite stuff: I tried to add an foreign key from the Notes table (account-id) to the accounts-table (id) in version 2.0.0. Unfortunately i am not sure if i did this right, because in my SQLite browser i can not see any foreign key association. Maybe you want to have a look at this or have a hint for me? 🚀 |
First, thanks for merging and I had to look this up as well :) Your migration to add the foreign key looks fine for me. I couldn't find it in SQLite browser as well. |
Thank you for having a look! Well well, know your tools, shame on me 😆 Would be great to see you again contributing in the future :) |
You never stop learning :) Sure, I'll keep contributing from time to time to the whole nextcloud ecosystem. Might be hard for the notes app as I'm quite happy with it ;) |
They cannot be dropped manually:
index associated with UNIQUE or PRIMARY KEY constraint cannot be dropped
From https://sqlite.org/faq.html#q7
Can be reproduced by just upgrading to 2.0.0 (without login).
While at it I used try-with-resources to automatically close the cursor.