-
Notifications
You must be signed in to change notification settings - Fork 95
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
adjust to new dbal #605
adjust to new dbal #605
Conversation
Hi @icewind1991, thanks for taking the iniative. Some things that I noticed immediately from looking at your PR (I did not check this out yet)
Did you check https://docs.nextcloud.com/server/latest/developer_manual/app_publishing_maintenance/upgrade-guide.html#upgrading-to-nextcloud-21 and references therein for what needs to be done for NC 21 compatibility? |
47c88ce
to
e3147fd
Compare
Codecov Report
@@ Coverage Diff @@
## master #605 +/- ##
===========================================
- Coverage 1.01% 0.99% -0.02%
- Complexity 444 450 +6
===========================================
Files 14 15 +1
Lines 1385 1401 +16
===========================================
Hits 14 14
- Misses 1371 1387 +16
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Removed, If you don't want them committed they should be added to the ignore yes
Done
Done
The new constants aren't compatible with <21 yes, switched to just using the string literars instead
It's listed under the "Updated core libraries" |
I’m not sure about hardcoding the types. What about definining them version-dependent? Maybe using the NC version in the constructor to assign them to a local variable (either If I understand correctly, the migration guide suggests dropping them completely (temporarily) for multi-NC-version compatibility, but I must admit I don’t like this. |
I do not like to remove the type hints either. They are there for a reason. I asked this question on the forum some time ago but only got an unofficial answer. One more thing I saw during a quick glance at the changes: You committed a whole bunch of whitespace changes (dropped indentation of otherwise empty lines). I know that some editors are doing this automatically. It makes the diff on the other side hard to read/check and cumbersome. This typically comes from a |
3e053cd
to
e436a4a
Compare
Signed-off-by: Robin Appelman <robin@icewind.nl>
…NC 21 Signed-off-by: Christian Wolf <github@christianwolf.email>
e436a4a
to
704b265
Compare
Closing this PR as it is already merged into branch |
adjust database code to new dbal shipped with nc21.
Fixes
error when trying to use with nc21