I am installing the laravel 4 package Entrust. I create the migration file. When i try to run the migration i get an error regarding the foreign key constraint. Is this an issue pretty regarding some PhpMyAdmin settings? I copy under the error directly from powershell:
PS C:\wamp\www\lab\x_pat> php artisan entrust:migration
Tables: roles, assigned_roles, permissions, permission_role An migration that creates 'roles', 'assigned_roles', 'permissions', 'permission_role' tables will be created in app/data base/migrations directory
Proceed with the migration creation? [Yes|no]yes
Creating migration... Migration successfully created!
PS C:\wamp\www\lab\x_pat> php artisan migrate
Migration table created successfully.
[Exception]
SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table assigned_roles add const
raint assigned_roles_user_id_foreign foreign key (user_id) references users (id)) (Bindings: array (
))
[PDOException] SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint
migrate [--bench[="..."]] [--database[="..."]] [--path[="..."]] [--package[="..."]] [--pretend] [--seed]