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

Cannot import current_timestamp() default from MariaDB [rt.cpan.org #134064] #42

Open rabbiveesh opened 1 year ago

rabbiveesh commented 1 year ago

Migrated from rt.cpan.org#134064 (status was 'new')

Requestors:

From dlambley@cpan.org on 2021-01-18 18:56:27 :

MariaDB made a change about five years ago which causes it to say "current_timestamp()" rather than "current_timestamp". This prevent DBIx::Class::Schema::Loader from correctly importing such default values.

The change happened here, https://github.com/MariaDB/server/commit/a411d7f4f670c24b43b50f7d2a1129e10218f4a7

I have made a pull request which should fix this problem, https://github.com/dbsrgits/dbix-class-schema-loader/pull/24

Best regards,
Dave