-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Missing columns after OC 10.5 -> NC 21.0.0beta2 upgrade #24813
Comments
|
|
is:
should be:
|
That's an optional column which can be added with an occ command |
|
|
is:
should be:
|
I could not run the index occ yet due to the bigint one blocking, so maybe some of the index discrepancies will be solved there. |
I have a local solution for the first bits (share_external and assignable) |
dropping assignable is more tricky as it will require adjusting the indices, so I abandoned that one for now and focussed on share_external. |
after patching my server with #24829 the occ commands all ran fine! additionally to the list from #23044 (comment) the setup checks told me to run "occ db:add-missing-primary-keys" which worked as well. |
I redid a diff and went through the items on top, most of the index differences were solved by the occ command. Here a few more I found:
soll:
|
|
#25001 likely broke the upgrade. we need to adjust the key before deleting the column: Here's the diff:
NC:
So we need to delete the "tag_ident" key and then recreate it without the "assignable" column. |
Should the key be adjusted directly as part of the migration or be part of the occ command ? The latter would be tricky as we'd need to delete the column afterwards in a subsequent update/migration. |
Also unclear: what to do if the "assignable" had a value ? Some tags might become duplicate so we need to make sure that there is no error when "merging" the tags during an upgrade. Tricky stuff :-/ |
I've pushed a PR for updating tag_ident before removing the column: #25068 |
I grepped for "assignable" and saw that we do have code that works with it, so might need to delete that as well: https://github.com/nextcloud/server/blob/master/apps/systemtags/lib/Activity/Provider.php#L333 In any case, it seems the "assignable" column needs further careful consideration and handling. For now to avoid blocking NC 20, this PR removes assignable column removal during upgrade, for now. We can handle it in a later minor release: #25069 |
Hi, please update to 24.0.9 or better 25.0.3 and report back if it fixes the issue. Thank you! My goal is to add a label like e.g. 25-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort! If you don't manage to reproduce the issue in time and the issue gets closed but you can reproduce the issue afterwards, feel free to create a new bug report with up-to-date information by following this link: https://github.com/nextcloud/server/issues/new?assignees=&labels=bug%2C0.+Needs+triage&template=BUG_REPORT.yml&title=%5BBug%5D%3A+ |
@szaimen this isn't really an issue / bug per se, but a diff of the DB schema from OC to NC to help migration so far I haven't heard of any critical issues there due to missing indices or so in the past years, so the ticket itself is not critical we can either convert to "tech debt" or close |
Thanks! Lets close then |
Steps to reproduce
occ upgrade
=> no errorsdb:convert-filecache-bigint
Expected behaviour
Success
Actual behaviour
Error about missing columns "oc_share_external.parent"
Missing columns
Expected from NC 21.0.0beta2
Actual
=> need to:
@juliushaertl not sure how these were missed, maybe some of the migrations did not run
The text was updated successfully, but these errors were encountered: