<p>This patch handles a behaviour change preventing schemas using <code>DEFAULT current_timestamp()</code> from being correctly imported from MariaDB.</p>
<p>MariaDB made a change about five years ago which causes it to say <code>current_timestamp()</code> rather than <code>current_timestamp</code> when outputting schema. This was quite deliberate, see <a rel="nofollow" href="https://jira.mariadb.org/browse/MDEV-13377">https://jira.mariadb.org/browse/MDEV-13377</a> and <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/MariaDB/server/commit/a411d7f4f670c24b43b50f7d2a1129e10218f4a7/hovercard" href="https://github.com/MariaDB/server/commit/a411d7f4f670c24b43b50f7d2a1129e10218f4a7">MariaDB/server@<tt>a411d7f</tt></a></p>
<p>This builds on <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/mrenvoize/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mrenvoize">@mrenvoize</a>'s unmerged <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="593194419" data-permission-text="Title is private" data-url="https://github.com/dbsrgits/dbix-class-schema-loader/issues/23" data-hovercard-type="pull_request" data-hovercard-url="/dbsrgits/dbix-class-schema-loader/pull/23/hovercard" href="https://github.com/dbsrgits/dbix-class-schema-loader/pull/23">#23</a> .</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/24'>https://github.com/dbsrgits/dbix-class-schema-loader/pull/24</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Handle current_timestamp() from MariaDB DESCRIBE</li>
  <li>Be more specific in regex</li>
  <li>Permit DATETIME types to have current_timestamp()</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/dbsrgits/dbix-class-schema-loader/pull/24/files#diff-546cfe3750fdf0b43306b4982bad72fac821115bcc0a5f310fb17de014b9dc47">lib/DBIx/Class/Schema/Loader/DBI/mysql.pm</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/dbsrgits/dbix-class-schema-loader/pull/24/files#diff-d1d0d1ec7f46f4b481b75284fa8ab6637bb1e9953ecc8a88489ead197cf38804">t/10_02mysql_common.t</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/dbsrgits/dbix-class-schema-loader/pull/24.patch'>https://github.com/dbsrgits/dbix-class-schema-loader/pull/24.patch</a></li>
  <li><a href='https://github.com/dbsrgits/dbix-class-schema-loader/pull/24.diff'>https://github.com/dbsrgits/dbix-class-schema-loader/pull/24.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/dbix-class-schema-loader/pull/24">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AACJ4AXLSKXM3VPC3V6UMV3S2R7DZANCNFSM4WHWMKPA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AACJ4AQSRXFOPLRADEZLDE3S2R7DZA5CNFSM4WHWMKPKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LX7JMSQ.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/dbix-class-schema-loader/pull/24",
"url": "https://github.com/dbsrgits/dbix-class-schema-loader/pull/24",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>