bug v1.0
avatar AmyStephen
AmyStephen
20 Oct 2013

I am manually creating the database via phpMyAdmin and ran into a problem where two DATETIME fields are defined with DEFAULT CURRENT_TIMESTAMP.

Not sure if the DB package converts that, or not, based on the database? But, MySQL only uses that default with the timestamp datatype. It fails with the datatime.

Maybe not something concerning for now, but thought I'd throw that out there.

Thanks!

avatar AmyStephen AmyStephen - open - 20 Oct 2013
avatar AmyStephen AmyStephen - open - 20 Oct 2013
avatar b2z
b2z - comment - 20 Oct 2013

Confirmed.

CURRENT_TIMESTAMP is only acceptable on TIMESTAMP fields.
As of mysql 5.6.5, you can use CURRENT_TIMESTAMP with DATETIME fields.

Reference

BTW here is the commit that changed the behaviour - 5775f38

avatar - close - 20 Oct 2013

Add a Comment

Login with GitHub to post a comment