<p>This adds support for alter table with unique constraint syntax in MySQL alter table.</p>
<p>For example,</p>
<pre><code>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`);
</code></pre>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>&nbsp;&nbsp;<a href='https://github.com/dbsrgits/sql-translator/pull/132'>https://github.com/dbsrgits/sql-translator/pull/132</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Added support for alter table with unique constraint syntax in MySQL.</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/dbsrgits/sql-translator/pull/132/files#diff-eb4e90bd718b893d924de67b8815b3e0d8ca66d75206795207e86da37b25412a">lib/SQL/Translator/Parser/MySQL.pm</a>
    (26)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/dbsrgits/sql-translator/pull/132/files#diff-0d3abda7ac242b9e4779c278ed7fe8b332e2c80c147f08aa40af80fa6f220ddb">t/02mysql-parser.t</a>
    (100)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/dbsrgits/sql-translator/pull/132.patch'>https://github.com/dbsrgits/sql-translator/pull/132.patch</a></li>
  <li><a href='https://github.com/dbsrgits/sql-translator/pull/132.diff'>https://github.com/dbsrgits/sql-translator/pull/132.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/dbsrgits/sql-translator/pull/132">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AACJ4AVXSW5CEYKMYE5PX73THQKLDANCNFSM42QKHXAA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AACJ4ASOT47RZPCVART623DTHQKLDA5CNFSM42QKHXAKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4MWK72NQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/dbsrgits/sql-translator/pull/132",
"url": "https://github.com/dbsrgits/sql-translator/pull/132",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>