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

ddl: allow multiple unique attributes in a column #12165

Merged
merged 13 commits into from
Sep 28, 2019

Conversation

tangenta
Copy link
Contributor

What problem does this PR solve?

Fix #12006.

What is changed and how it works?

Remove constraint name assignment when building ast.Constraint from Option of ast.ColumnDef. Let checkConstraintNames determine the name later to avoid the name duplication.

Check List

Tests

  • Unit test
  • Integration test

Code changes

Side effects

Related changes

  • Need to cherry-pick to the release branch

Release note

  • Allow multiple unique attributes in a column

@tangenta
Copy link
Contributor Author

/run-all-tests

@codecov
Copy link

codecov bot commented Sep 12, 2019

Codecov Report

Merging #12165 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #12165   +/-   ##
===========================================
  Coverage   80.0927%   80.0927%           
===========================================
  Files           462        462           
  Lines        103726     103726           
===========================================
  Hits          83077      83077           
  Misses        14745      14745           
  Partials       5904       5904

@tangenta
Copy link
Contributor Author

/run-integration-common-test

Copy link
Contributor

@AilinKid AilinKid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

ddl/ddl_api.go Outdated Show resolved Hide resolved
@tangenta tangenta added needs-cherry-pick-3.1 status/LGT1 Indicates that a PR has LGTM 1. labels Sep 23, 2019
@tangenta
Copy link
Contributor Author

/run-unit-test

@tangenta tangenta added the status/can-merge Indicates a PR has been approved by a committer. label Sep 28, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Sep 28, 2019

/run-all-tests

@sre-bot sre-bot merged commit 0ee738b into pingcap:master Sep 28, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Sep 28, 2019

cherry pick to release-2.1 failed

@sre-bot
Copy link
Contributor

sre-bot commented Sep 28, 2019

cherry pick to release-3.0 in PR #12463

@sre-bot
Copy link
Contributor

sre-bot commented Sep 28, 2019

cherry pick to release-3.1 in PR #12464

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/sql-infra SIG: SQL Infra status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

duplicate key name error in column type a serial serial default value
5 participants