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

CPM-101: remove doctrine cache bundle and update doctrine packages versions #13551

Closed
wants to merge 17 commits into from

Conversation

nmarniesse
Copy link
Collaborator

@nmarniesse nmarniesse commented Dec 17, 2020

Doctrine cache bundle

Doctrine cache bundle is no longer maintained: doctrine/DoctrineCacheBundle#156

Since symfony 4.3 the best way to configure the cache is using the symfony/cache component

In this PR the doctrine-cache-bundle is removed and replaced by symfony/cache. The config is migrated to this new component.

Update doctrine packages versions

One of the initial goal was to remove the doctrine/reflection package (which is abandoned). But for now thee is some issues to do that: to remove it we need to update doctrine/persistence in 2.x and doctrine/common in 3.x. But there is some issues with the friendsofsymfony/rest-bundle that is the higher version available for now.

Major version upgrade: doctrine/doctrine-migrations-bundle and doctrine/migrations are bumped from 1.x to 2.x. The config is adapted. Now the migrate_version table has a new executed_at column. The column is added automatically no need to do additional work.
The BC break about Doctrine\DBAL namespace is fixed in this PR (see https://github.com/doctrine/migrations/releases/tag/v2.0.0 for further information)

@nmarniesse nmarniesse changed the title CPM-101: remove doctrine cache bundle CPM-101: remove doctrine cache bundle and update some doctrine packages version Dec 17, 2020
@nmarniesse nmarniesse changed the title CPM-101: remove doctrine cache bundle and update some doctrine packages version CPM-101: remove doctrine cache bundle and update doctrine packages versions Dec 17, 2020
pim:
chain:
providers: [doctrine_cache.providers.pim_apcu, doctrine_cache.providers.pim_array]
column_length: 255
Copy link
Collaborator Author

@nmarniesse nmarniesse Dec 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Length for the version column of the migration_versions table. The default for doctrine/migration v2 is 14. That means none of our igration would work....
The length was 255 for the v1

@nmarniesse nmarniesse force-pushed the CPM-101 branch 3 times, most recently from 4d2d5a8 to a78db52 Compare December 22, 2020 16:12
@nmarniesse nmarniesse force-pushed the CPM-101 branch 2 times, most recently from 1d28a02 to cd987b3 Compare January 4, 2021 17:27
Base automatically changed from CPM-101 to master January 5, 2021 08:43
@nmarniesse
Copy link
Collaborator Author

Splitted

@nmarniesse nmarniesse closed this Jan 6, 2021
@nmarniesse nmarniesse deleted the CPM-101_doctrine branch January 7, 2021 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant