Laravel migration with more than one timestamp column #39528
-
"laravel/framework": '8.69.0' Description:im trying to run this code for migration :
And I get this error message :
but when I copy the generated SQL code and run it mysql app there is no problem and it works Steps To Reproduce:1- make a migration with more than one timestamp column ( $table->timestamp('a'); ) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
you need to set a default value or make the columns nullable From mysql docs :
column b and c need to have a default value or be nullable |
Beta Was this translation helpful? Give feedback.
you need to set a default value or make the columns nullable
From mysql docs :
column b and c need to have a default value or be nullable