framework
framework copied to clipboard
[Bug] timestamps() breaks when MySQL strict mode is enabled
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.