You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
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.
Activity
ChristophWurst commentedon Jan 12, 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.
marcelklehr commentedon Jan 23, 2021
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 commentedon Jan 23, 2021
So, it works now, but I'm still dependent on DBAL's API
ChristophWurst commentedon Jan 25, 2021
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 commentedon Jan 25, 2021
No, because I need to use DBAL\Types::getType() for Doctrine\DBAL\Schema\Table->changeColumn
ChristophWurst commentedon Jan 25, 2021
Right. So the
Schemaand 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.