Skip to content
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

PDOException on "php artisan migrate" step #2

Closed
bashfulrobot opened this issue May 25, 2016 · 4 comments
Closed

PDOException on "php artisan migrate" step #2

bashfulrobot opened this issue May 25, 2016 · 4 comments

Comments

@bashfulrobot
Copy link

Hi there,

When running the" php artisan migrate" step on setup, I am getting the below...

[PDOException]
SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'created_at'

Amy comments?

@jonstavis
Copy link
Owner

jonstavis commented May 25, 2016

Are you using Homestead? It looks like this issue is relevant:

laravel/framework#3602

Updating the Laravel version should fix this, see fix in 060fb92

Once you do a pull be sure to do another composer install

@bashfulrobot
Copy link
Author

I am not using homestead. I’m trying to setup a production server (lamp stack on 16.04).

I’ll read through that article and see if I can figure it out.

Dustin Krysak

On May 25, 2016 at 5:45:55 AM, jonstavis (notifications@github.commailto:notifications@github.com) wrote:

Are you using Homestead? It looks like this issue is relevant:

laravel/framework#3602laravel/framework#3602

Updating the Laravel version should fix this, see fix in 060fb92060fb92


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-221564317

@bashfulrobot
Copy link
Author

Here is the “workaround”. Edit config/database.php and under the mysql section set “strict” to “true”. Might be relevant for others.

Thanks.

Dustin

On May 25, 2016 at 5:45:55 AM, jonstavis (notifications@github.commailto:notifications@github.com) wrote:

Are you using Homestead? It looks like this issue is relevant:

laravel/framework#3602laravel/framework#3602

Updating the Laravel version should fix this, see fix in 060fb92060fb92


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-221564317

@jonstavis
Copy link
Owner

You should not need to do that if you pull the latest commit and re-run composer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants