-
-
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
Getting rid of the column name index #3583
Conversation
bc69280
to
5374bae
Compare
5374bae
to
94d2a4a
Compare
if (isset($column['sequence'])) { | ||
$sql[] = $this->getCreateSequenceSQL($column['sequence']); | ||
} | ||
|
||
if (! isset($column['autoincrement']) || ! $column['autoincrement'] && | ||
(! isset($column['autoinc']) || ! $column['autoinc'])) { |
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.
Not sure if it's worth mentioning the removal of 'autoinc'
as a breaking change. I don't see it mentioned in the documentation and this is the only platform which has it. The rest of the usages were removed prior to DBAL 2.0.
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.
I would remove it in another PR and add it to the upgrade doc. That isn't really related to getting rid of the column name index.
Should this be done in |
This is a very good question. Internally, |
@morozov We can just merge this and create another issue for improving |
Yes, let's get this one merged then. |
Getting rid of the column name index
Getting rid of the column name index
Getting rid of the column name index
Getting rid of the column name index
Getting rid of the column name index
Getting rid of the column name index
Getting rid of the column name index
Getting rid of the column name index
Getting rid of the column name index
Right now, column names are contained both in array keys and the actual definitions which creates an ambiguity which is a potential source of issues. The proposal is to not rely on the keys and always use the name from the column definition as the single source of truth.