-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Remove TableDiff::$name and getName() #5683
Conversation
367c09e
to
39e4ff8
Compare
@@ -1224,7 +1228,7 @@ public static function getGeneratesIdentifierNamesInAlterTableSQL(): iterable | |||
// Quoted identifiers non-reserved keywords. | |||
[ | |||
new TableDiff( | |||
'`mytable`', | |||
new Table('mytable'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this supposed to keep the `?
new Table('mytable'), | |
new Table('`mytable`'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! The quotes got lost during refactoring.
@@ -1300,7 +1304,7 @@ public static function getGeneratesIdentifierNamesInAlterTableSQL(): iterable | |||
// Quoted identifiers reserved keywords. | |||
[ | |||
new TableDiff( | |||
'`table`', | |||
new Table('mytable'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this supposed to keep the `?
new Table('mytable'), | |
new Table('`mytable`'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The table name got accidentally changed during the refactoring but apparently, it's irrelevant to the test.
39e4ff8
to
6381aca
Compare
The API being removed was deprecated in #5678.
Additionally, this patch makes the reference from the table diff to the old table mandatory. In order to do that, it moves the corresponding constructor argument from the last position to the first, since all remaining arguments are still optional. This change should not affect the consumers of the DBAL API since the constructor is internal.