<ul class="task-list">
<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/48'>https://github.com/dbsrgits/dbix-class/pull/48</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/48/files#diff-0">lib/DBIx/Class/ResultSource.pm</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/dbsrgits/dbix-class/pull/48/files#diff-1">lib/SQL/Translator/Parser/DBIx/Class.pm</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/dbsrgits/dbix-class/pull/48/files#diff-2">t/99dbic_sqlt_parser.t</a>
    (22)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/dbsrgits/dbix-class/pull/48.patch'>https://github.com/dbsrgits/dbix-class/pull/48.patch</a></li>
  <li><a href='https://github.com/dbsrgits/dbix-class/pull/48.diff'>https://github.com/dbsrgits/dbix-class/pull/48.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/48">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/302594__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxOTQzNDg2OSwiZGF0YSI6eyJpZCI6MzU2NTA3MzZ9fQ==--1257b2847151a0e51f72dd1ad192c0b6dfd39763.gif" width="1" /></p>