lundi 29 janvier 2018

Laravel - migration error, nullable default?

In the migration I have the following line:

$table->date('end_date')->nullable()->change();

For some reason reason this dont work anymore when I moved from homestead to valet.

Error I get when I run the migration via console:

SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'end_date'



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2Fo8ZEs
via IFTTT

Aucun commentaire:

Enregistrer un commentaire