Skip to content

[DoctrineBridge] Kill DBAL 2 support #50571

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

Merged
merged 1 commit into from
Jun 9, 2023
Merged

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Jun 6, 2023

Q A
Branch? 7.0
Bug fix? no
New feature? yes
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

DBAL 2 is dead and buried. Let's remove code that we needed to maintain DBAL 2.

TODO:

@carsonbot carsonbot added this to the 7.0 milestone Jun 6, 2023
@carsonbot carsonbot changed the title Kill DBAL 2 support [Doctrine] Kill DBAL 2 support Jun 6, 2023
@derrabus derrabus force-pushed the remove/dbal-2 branch 2 times, most recently from eaa0c92 to f174043 Compare June 6, 2023 11:11
@nicolas-grekas
Copy link
Member

Can't we target 6.4? That'd be nicer to the community.

@derrabus
Copy link
Member Author

derrabus commented Jun 6, 2023

Can't we target 6.4?

You mean drop DBAL 2 in 6.4 already? We can, but I didn't want to cut off projects that still run on DBAL 2 (or at least support it) on a minor release. I cannot really tell what the impact of that change would be.

That'd be nicer to the community.

One could argue that giving the community an LTS for migrating away from a still very popular package would be nicer though.

@stof
Copy link
Member

stof commented Jun 6, 2023

Well, older versions of DoctrineBundle don't work well with Symfony 6.3 anyway (for instance, the MapEntity attribute would break) and DoctrineBundle 2.9+ already requires DBAL 3.6+.
So I would say that if you are still using DBAL 2, you are almost required to stick to Symfony 5.4 currently.

@nicolas-grekas
Copy link
Member

nicolas-grekas commented Jun 6, 2023

You mean drop DBAL 2 in 6.4 already?

Yes!
Major versions should be as boring as possibly doable, and that includes not doing version bumps if possible. Minor versions are better candidates for those bumps.

derrabus added a commit that referenced this pull request Jun 8, 2023
…latform` (derrabus)

This PR was merged into the 5.4 branch.

Discussion
----------

[DoctrineBridge][Messenger] Add test cases for `MariaDBPlatform`

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Backport from #50571
| License       | MIT
| Doc PR        | N/A

This PR adds test cases specifically for DBAL's `MariaDBPlatform` class. DBAL 4 will change the inheritance hierarchy for MySQL-like platforms, so having those tests might safe us one fine day.

Commits
-------

618de82 Add test cases for MariaDBPlatform
@derrabus derrabus force-pushed the remove/dbal-2 branch 2 times, most recently from 9eff782 to 7ed12d3 Compare June 8, 2023 12:48
@derrabus derrabus requested a review from dunglas as a code owner June 8, 2023 12:48
@derrabus
Copy link
Member Author

derrabus commented Jun 8, 2023

Minor versions are better candidates for those bumps.

In our case, it leaves DBAL 2 projects pinned to a non-LTS Symfony branch. But well, they have been warned, right?

I can work out a PR for 6.4 once #50576 and #50579 are done. We can continue the discussion there.

nicolas-grekas added a commit that referenced this pull request Jun 8, 2023
…ystem (derrabus)

This PR was merged into the 6.4 branch.

Discussion
----------

[DoctrineBridge] Deprecate using the old DBAL logger system

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | yes
| Tickets       | Backport from #50571
| License       | MIT
| Doc PR        | N/A

Commits
-------

a8f6243 Deprecate using the old DBAL logger system
nicolas-grekas added a commit that referenced this pull request Jun 8, 2023
This PR was merged into the 6.4 branch.

Discussion
----------

[DoctrineBridge] Require ORM 2.15

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Backported from #50571
| License       | MIT
| Doc PR        | N/A

Commits
-------

37e9d60 Require ORM 2.15
@nicolas-grekas
Copy link
Member

I'm torn now. I'd fine either way, which means fine for 7.0 :)

@nicolas-grekas nicolas-grekas changed the title [Doctrine] Kill DBAL 2 support [DoctrineBridge] Kill DBAL 2 support Jun 8, 2023
@fabpot
Copy link
Member

fabpot commented Jun 9, 2023

Thank you @derrabus.

@fabpot fabpot merged commit d63071c into symfony:7.0 Jun 9, 2023
@derrabus derrabus deleted the remove/dbal-2 branch June 9, 2023 14:03
@fabpot fabpot mentioned this pull request Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants