Laravel Migrations - Issues while creating timestamps

后端 未结 10 583
深忆病人
深忆病人 2021-02-05 15:35

I am trying to run migrations on my Laravel instance. They are just the default migrations (users and password resets) but when it tries to make the timestamps it throws this e

10条回答
  •  死守一世寂寞
    2021-02-05 16:32

    MySQL 5.7.28

    The MySQL docs recommend the following (note the use of GLOBAL):

    SET GLOBAL sql_mode = 'ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
    

提交回复
热议问题