Created
June 22, 2021 13:21
-
-
Save micc83/f995549a0789b9809a5855618a496390 to your computer and use it in GitHub Desktop.
Fix issues with: 1067 Invalid default value for 'created_at'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Fix issues with: 1067 Invalid default value for 'created_at' | |
DB::statement(<<<EOT | |
ALTER TABLE `users` | |
MODIFY created_at TIMESTAMP null, | |
MODIFY updated_at TIMESTAMP null | |
DEFAULT null; | |
EOT); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment