-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Corrected duplicate 'COMMENT' part in DDL statement #2730
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
Conversation
@Ocramius sorry for the mess on the other 2 PRs. |
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.
Status: Needs work.
$options = array( | ||
'type' => Type::getType('integer'), | ||
'default' => 0, | ||
'notnull' => TRUE, |
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.
Please, use true
instead.
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.
@phansys thanks, I'm used to Drupal CS which is just the opposite :(
Made changes requested. |
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.
Merging at the soonest occasion, as I cannot backport from here
…a-change' into 2.5 Close #2730
If you pass both a 'columnDefinition' containing a comment, and a 'comment' option, to a column when creating /altering a table, the SQL statement produced by the schema has a duplicate COMMENT part.
The following code
will generate: