-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Primary key is too long for oracle #4425
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
Conversation
🙈 I have the fear of long running upgrades somehow, but this is "only" a table rename and should be fine right? |
Dunno if that is suitable here, but according to the docs MDB2 declaration has the |
Yeah, maybe. But the Doctrine code we use currently does not support it. |
Codecov Report
@@ Coverage Diff @@
## master #4425 +/- ##
============================================
- Coverage 54.19% 54.16% -0.03%
- Complexity 22168 22174 +6
============================================
Files 1364 1365 +1
Lines 84853 84886 +33
Branches 1322 1322
============================================
- Hits 45985 45982 -3
- Misses 38868 38904 +36
|
|
Actually the fix was quite easy, because we don't delete tables automatically yay |
MorrisJobke
left a comment
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.
Tested and works via SQLite and Mysql
|
Gave it a test run on sqlite: 💥 |
|
@nickvergessen do we have to rename the index
|
|
Yeah looks like, too odd. I hope SQLite is the only DB which has global index names instead of being bound to the table they are in? |
|
Done, thanks for testing :) |
ChristophWurst
left a comment
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.
Now it works 🚀
|
Let me try to fix the conflicts. |
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
|
Rebased. |
This is somewhat a crucial problem. The app is force enabled but breaks the installation on oracle.
Tested with nextcloud/notifications#75
Broken: https://travis-ci.org/nextcloud/notifications/builds/224355934#L1273
With this little change it passes: https://travis-ci.org/nextcloud/notifications/builds/224360873
The problem is, the old name was too long:
oc_twofactor_backup_codes_AI_PK=> 31 chars, but the maximum is 30.
The only way I see is, that we rename the table manually on a pre-update step for existing installations. Otherwise all backup codes will be dropped on the update.
cc @MorrisJobke @ChristophWurst @LukasReschke @rullzer