<p>The code was reading the file, then generating an md5sum for the content and<br>
comparing it to the md5sum in the file itself. If these didn't match then it<br>
would return the <em>generated</em> MD5 rather than what was actually in the file. It<br>
would then compare this generated MD5 to the MD5 for a regen of the same<br>
file. If they matched it would not bother writing the file.</p>

<p>This works fine if it's the <em>content</em> that has changed, but if the md5sum<br>
itself is wrong but the content has not changed, then returning the generated<br>
MD5 based on the content we just read is wrong.</p>

<p>Instead, we now simply return a non-MD5 string. This will force the file to be<br>
written again whether it was the file's content that had changed or just its<br>
md5sum.</p>

<hr>

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

<h4>Commit Summary</h4>
<ul>
  <li>Overwrite if the md5sum in a file is wrong but the content has not changed</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/dbsrgits/dbix-class-schema-loader/pull/8/files#diff-0">Changes</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/dbsrgits/dbix-class-schema-loader/pull/8/files#diff-1">lib/DBIx/Class/Schema/Loader/Base.pm</a>
    (13)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/dbsrgits/dbix-class-schema-loader/pull/8/files#diff-2">t/40overwrite_modifications.t</a>
    (60)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/dbsrgits/dbix-class-schema-loader/pull/8.patch'>https://github.com/dbsrgits/dbix-class-schema-loader/pull/8.patch</a></li>
  <li><a href='https://github.com/dbsrgits/dbix-class-schema-loader/pull/8.diff'>https://github.com/dbsrgits/dbix-class-schema-loader/pull/8.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-schema-loader/pull/8">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AASeAtT0CbGWYiOl7Enkz3KuBW0e_704ks5pZUiEgaJpZM4HDbFj.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/dbsrgits/dbix-class-schema-loader/pull/8"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>