<ul>
<li>
<p>Pg tablenames may have a schema prefix.  This leads to invalid ADD<br>
CONSTRAINT / CREATE INDEX statments being generated by -&gt;deploy(),<br>
since constraint and index names may not have a period in them.  This<br>
patch strips the schema part from the table name when constructing<br>
unique index and constraint names.  The fix was taken from<br>
ribasushi's email to the mailing list:</p>

<p><a href="http://lists.scsys.co.uk/pipermail/dbix-class/2013-February/011141.html">http://lists.scsys.co.uk/pipermail/dbix-class/2013-February/011141.html</a></p>
</li>
</ul>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/felliott/dbix-class strip-schema-from-index</pre>
<p>Or view, comment on, or merge it at:</p>
<p>&nbsp;&nbsp;<a href='https://github.com/dbsrgits/dbix-class/pull/45'>https://github.com/dbsrgits/dbix-class/pull/45</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>strip schema name from ADD CONSTRAINT / CREATE INDEX</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/dbsrgits/dbix-class/pull/45/files#diff-0">lib/DBIx/Class/ResultSource.pm</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/dbsrgits/dbix-class/pull/45/files#diff-1">lib/SQL/Translator/Parser/DBIx/Class.pm</a>
    (8)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/dbsrgits/dbix-class/pull/45.patch'>https://github.com/dbsrgits/dbix-class/pull/45.patch</a></li>
  <li><a href='https://github.com/dbsrgits/dbix-class/pull/45.diff'>https://github.com/dbsrgits/dbix-class/pull/45.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href='https://github.com/dbsrgits/dbix-class/pull/45'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/302594__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxMzExNDM3NywiZGF0YSI6eyJpZCI6Mjk5NzM4OTR9fQ==--0b38e7a4b09181eaaa336fcc5665539435950c14.gif' height='1' width='1'></p>