Skip to content
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

Breaking changes in Nextcloud 21 #1372

Closed
ChristophWurst opened this issue Jan 12, 2021 · 6 comments
Closed

Breaking changes in Nextcloud 21 #1372

ChristophWurst opened this issue Jan 12, 2021 · 6 comments
Labels

Comments

@ChristophWurst
Copy link
Member

Hi there,

I found that your app uses some classes of Nextcloud's third party libraries. Since an upgrade of those for php8 compatibility, your app will have to be adjusted as well. See https://docs.nextcloud.com/server/latest/developer_manual/app_publishing_maintenance/upgrade-guide.html#doctrine-dbal for details. Your app uses Doctrine\DBAL\Types\Type which lost the old contants: https://github.com/doctrine/dbal/blob/3.0.x/UPGRADE.md#deprecated-type-constants.

Cheers

@ChristophWurst
Copy link
Member Author

Please note that we just merged a PR with our own constants for the types, so the app can be fully independent of any 3rdparty libraries: nextcloud/server#25089.

@marcelklehr
Copy link
Member

marcelklehr commented Jan 23, 2021

Please note that we just merged a PR with our own constants for the types, so the app can be fully independent of any 3rdparty libraries: nextcloud/server#25089.

Nice. I'm using Doctrine\DBAL\Schema\Table->changeColumn() in one of my migrations, though, and that requires a type instance, obtained with Type::getType():Type (see https://github.com/nextcloud/bookmarks/pull/1387/checks?check_run_id=1754238646)

@marcelklehr
Copy link
Member

So, it works now, but I'm still dependent on DBAL's API

@ChristophWurst
Copy link
Member Author

So, it works now, but I'm still dependent on DBAL's API

Because the app supports a wider range of Nextcloud releases? That is a problem right now. Once the minimum version is 21 you can use the new constants safely.

@marcelklehr
Copy link
Member

No, because I need to use DBAL\Types::getType() for Doctrine\DBAL\Schema\Table->changeColumn

@ChristophWurst
Copy link
Member Author

Right. So the Schema and a few other types are still from Doctrine directly. We have to clean that up and replace with our own abstraction. You are totally right that you will need the Doctrine stuff for this right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

2 participants