Primary key is too long for oracle#4425
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.
Tested and works via SQLite and Mysql
|
Gave it a test run on sqlite: 💥 |
|
@nickvergessen do we have to rename the index too? |
|
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 :) |
|
Let me try to fix the conflicts. |
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
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