framework icon indicating copy to clipboard operation
framework copied to clipboard

[Bug] timestamps() breaks when MySQL strict mode is enabled

Open berle opened this issue 12 years ago • 0 comments

When you enable MySQLs strict mode, it prohibits you from using 0 as default value for the timestamp datatype. This breaks the timestamps() method in the schema builder.

Currently, I've worked around this issue by patching Laravel to use datetime instead, which doesn't have all the nasty magic attached to it that timestamp does, which in turn is the actual source of the problem.

It's also a possibility to solve this by setting CURRENT_TIMESTAMP as default value.

Either way, a more permanent solution probably needs to be found.

berle avatar Apr 18 '14 19:04 berle