-
Notifications
You must be signed in to change notification settings - Fork 10
Migration Error: Invalid default value for 'created_at' #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Looking further into this I found that the |
Your change in 2b8d2c6c0a04ceede02302a0bd8d8f10a0394a9b resolved this issue for me too. I was moving over to this fork from the official one due to being forced to update to PHP 8+, and ran into the same error you ran into after applying the changes found in #6. Changing that migration as your PR does let me migrate successfully and get my instance running again. I greatly appreciate it! |
@nitz Yeah I was in the same situation a while ago. Thought it would be good to push the fixes back up. Glad it helped :) My PR overall contains a bunch of fixes and nice to haves too! Hopefully @mwilmes-at-avc will have time to review and approve soon :) |
I encounter the same issue on PHP 8.3, and applying the patch here works great. Thanks for the contributions and this repo. |
When running
php artisan migrate
I experience the issue below. I've tried changing the sql mode to no avail.Im running
Mysql 8.0.33-0 Ubuntu 22.04
Laravel:
9.52.13
This is being caused by
database/migrations/2023_01_24_234401_add_secrets_key_default.php:21
If I can get it working I'll make a PR with the fix but in the meantime has anyone else come across this?
The text was updated successfully, but these errors were encountered: