-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Cache] Remove database server version detection #52720
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
[Cache] Remove database server version detection #52720
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
bc3a79f
to
5410fd8
Compare
What will be the behavior if someone uses an old version of Postgres? This should be mentioned in the changelog and the minimum database server versions needs to be documented. |
The adapter will use an SQL syntax the server won't understand. That's a hard exception.
I'll update the change log and open a PR for the docs. |
5410fd8
to
c5f7cd5
Compare
c5f7cd5
to
842c3c2
Compare
I've opened symfony/symfony-docs#19187 for the docs. |
This PR was merged into the 7.0 branch. Discussion ---------- Document requirements for DoctrineDbalAdapter Follows symfony/symfony#52720. I've added a block that documents the compatibility with various database engines. * MySQL 5.7 is the oldest release supported by DBAL 3. * MariaDB 10.2 is the oldest release supported by DBAL 3. * The `MERGE` statement that the adapter uses requires Oracle 10g or newer. * SQL Server 2012 is the oldest release supported by DBAL 3. * The `INSERT OR REPLACE` statement that we use on SQLite requires PHP to be linked against libsqlite 3.24 or newer. * The `ON CONFLICT` clause that we use on Postgres was introduced with version 9.5. Commits ------- 4127633 Document requirements for DoctrineDbalAdapter
Our DoctrineDbalAdapter is currently sniffing for the database server version to implement workarounds for very old database servers:
I think it's fair to not support those old releases anymore at this point.