Laravel Migrations - Issues while creating timestamps

后端 未结 10 584
深忆病人
深忆病人 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:34

    it sounds like strict mode.

    You may disable strict mode in one of two ways:

    Open your my.ini file within the MySQL installation directory, and look for the text sql-mode.

    Find:

    sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

    and change to

    sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

    or you can run the following in phpMyAdmin

    SET @@global.sql_mode='';

提交回复
热议问题