Skip to content

Added support for alter table with unique constraint syntax in MySQL.#132

Open
uehara-delta wants to merge 2 commits intodbsrgits:masterfrom
uehara-delta:mysql-add-unique-key-constraints
Open

Added support for alter table with unique constraint syntax in MySQL.#132
uehara-delta wants to merge 2 commits intodbsrgits:masterfrom
uehara-delta:mysql-add-unique-key-constraints

Conversation

@uehara-delta
Copy link
Contributor

@uehara-delta uehara-delta commented Apr 7, 2021

This adds support for alter table with unique constraint syntax in MySQL.

For example,

create table `example` (
  id integer not null,
  `subid` varchar(255),
  `subid2` varchar(255),
  primary key (`id`)
);

alter table `example`
  add constraint subid_uniq unique key (`subid`, `subid2`);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant