dbsrgits / dbix-class-schema-loader

Official GitHub remote for git.shadowcat.co.uk DBIx-Class-Schema-Loader.git
http://dbix-class.org/
11 stars 34 forks source link

Handle current_timestamp() from MariaDB DESCRIBE #23

Open mrenvoize opened 4 years ago

mrenvoize commented 4 years ago

At some point, MariaDB started outputing 'current_timestamp()' in the default field when DESCRIBE is called on the table. This is a change from 'CURRENT_TIMESTAMP' in mysql and older versions of mariadb. As such, our equality match started to fail and resulting schema dumps produced current_timestamp() instead of \"current_timestamp"

I wasn't sure where to add a test for this.. if you guide me as to where I'm happy to add one.