Support ALTER TABLE DROP PRIMARY KEY#682
Conversation
Pull Request Test Coverage Report for Build 3364446229
💛 - Coveralls |
| name, | ||
| cascade, | ||
| } | ||
| } else if self.parse_keyword(Keyword::PRIMARY) { |
There was a problem hiding this comment.
@ding-young ALTER TABLE tb DROP PRIMARY isn't allowed and, therefore, shouldn't be acceptable.
The let _ in the next line is permissive over this.
Also, I think this is a MySQL-specific statement. Could you please add the validation to accept only MySQL and GenericDialect, please?
ALTER TABLE DROP PRIMARY KEY
alamb
left a comment
There was a problem hiding this comment.
@ding-young do you have time to implement @AugustoFKL 's suggestion? Otherwise this PR looks good to me
Yes, I'll work on it soon. |
|
@AugustoFKL Thank you for feedback. I changed the code 😃 |
AugustoFKL
left a comment
There was a problem hiding this comment.
LGTM
@alamb ready for approval :)
|
Thanks @ding-young and @AugustoFKL ! |
Issue
resolves #591