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'



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire