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

Error on php artisan admin:seed #40

Closed
setkyar opened this issue Jun 23, 2015 · 6 comments
Closed

Error on php artisan admin:seed #40

setkyar opened this issue Jun 23, 2015 · 6 comments

Comments

@setkyar
Copy link

setkyar commented Jun 23, 2015

When I try to run php artisan admin:seed , I got the following error.

 [Illuminate\Database\QueryException]                                                                                                                                                                      
  SQLSTATE[42S22]: Column not found: 1054 Unknown column '0' in 'field list' (SQL: insert into `permission_role` (`0`, `created_at`, `permission_id`, `role_id`, `updated_at`, `1`, `2`, `3`, `4`, `5`, `6 `) values (2, 2015-06-23 08:56:54, *items, 1, 2015-06-23 08:56:54, 4, 3, 7, 6, 5, 1))                                                                                                                   


  [PDOException]                                                              
  SQLSTATE[42S22]: Column not found: 1054 Unknown column '0' in 'field list' 

What is wrong with me?

@gravitano
Copy link
Member

Do you have users table ?

@setkyar
Copy link
Author

setkyar commented Jun 23, 2015

Yes I have.

@setkyar
Copy link
Author

setkyar commented Jun 23, 2015

See tables on my terminal

screenshot from 2015-06-23 16 40 43

@romannebesnuy
Copy link

This error is with Laravel 5.1 =(
With Laravel 5.0 all it's ok!

Hope you you'll correct this =) Thanks)

@setkyar
Copy link
Author

setkyar commented Jun 29, 2015

Yeah, that error was on Laravel 5.1! 5.0 is ok.

@gravitano
Copy link
Member

To fix this issue, just upgrade your pingpong/admin to version 2.1.0 (for Laravel 5.1 only). Thanks!

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

3 participants