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

Rename MySql... to MySQL... and PostgreSqlSchemaManager to PostgreSQLSchemaManager #4343

Merged
merged 2 commits into from
Oct 15, 2020

Conversation

mvorisek
Copy link
Contributor

@mvorisek mvorisek commented Oct 14, 2020

Q A
Type improvement
BC Break yes (class names are case insensitive, but it the class will not load with autoload if referenced first with the old case)
Fixed issues todo from MySqlPlatform class

Summary

Renamed classes:

  • Doctrine\DBAL\Platforms\MySqlPlatform -> Doctrine\DBAL\Platforms\MySQLPlatform
  • Doctrine\DBAL\Schema\MySqlSchemaManager -> Doctrine\DBAL\Schema\MySQLSchemaManager
  • Doctrine\DBAL\Schema\PostgreSqlSchemaManager -> Doctrine\DBAL\Schema\PostgreSQLSchemaManager
  • test classes

PS: I am a huge fan of PascalCase defined with snake case, ie. if mysql_platform is the most sensual form, then the class should be named MysqlPlatform. But to keep things consistent, I only fixed one TODO from code and make MySql to be consistent with other names.

@mvorisek mvorisek marked this pull request as draft October 14, 2020 09:43
@mvorisek
Copy link
Contributor Author

mvorisek commented Oct 14, 2020

@morozov @greg0ire is this welcomed and ok to target 2.11.x?

@greg0ire
Copy link
Member

It's ok with me 👍

@mvorisek mvorisek force-pushed the rename_MySql_to_MySQL branch 3 times, most recently from b2d326f to 23b0d94 Compare October 14, 2020 18:37
@mvorisek mvorisek marked this pull request as ready for review October 14, 2020 18:42
@mvorisek mvorisek changed the title Rename MySql to MySQL Rename MySql to MySQL and PostgreSql to PostgreSQL Oct 14, 2020
@mvorisek mvorisek marked this pull request as draft October 14, 2020 18:50
@mvorisek mvorisek marked this pull request as ready for review October 14, 2020 19:04
@mvorisek
Copy link
Contributor Author

PR done

@greg0ire
Copy link
Member

yes (class names are case insensitive, but it the class will not load with autoload if referenced first with the old case)

This means you should target 3.0.x

@mvorisek
Copy link
Contributor Author

yes (class names are case insensitive, but it the class will not load with autoload if referenced first with the old case)

This means you should target 3.0.x

are the renamed classes even intended to be instantiated directly - if there are ment to be used by Driver::getDatabasePlatform(), then there is no BC break

@morozov
Copy link
Member

morozov commented Oct 14, 2020

@morozov @greg0ire is this welcomed and ok to target 2.11.x?

Since 2.11.0 has been released, 2.11.x only accepts bug fixes and the improvements to the upgrade path to 3.0. Please retarget against 3.0.x.

@mvorisek mvorisek changed the base branch from 2.11.x to 3.0.x October 14, 2020 20:39
@mvorisek mvorisek changed the title Rename MySql to MySQL and PostgreSql to PostgreSQL Rename MySql... to MySQL... and PostgreSqlSchemaManager to PostgreSQLSchemaManager Oct 14, 2020
@greg0ire greg0ire merged commit 98c9835 into doctrine:3.0.x Oct 15, 2020
@greg0ire
Copy link
Member

Thanks @mvorisek !

@mvorisek mvorisek deleted the rename_MySql_to_MySQL branch October 15, 2020 08:35
@morozov
Copy link
Member

morozov commented Oct 18, 2020

While this change is welcomed, it made me hate macOS even more. Before it propagates through all supported branches, it makes it hard to switch between them due to the case insensitivity of APFS. Merging the branch with one case to the branch with another is even more challenging.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants