-
Notifications
You must be signed in to change notification settings - Fork 216
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
Need fix foreign key table name #246
Comments
@chiricomarco thnx man! You're saved my time! |
Hey guys. I have too add in the file: /src/migrations/2015_02_17_152439_create_permission_user_table |
problem still exists on fresh v6.0 installation. laravel-acl version = 2.0.3. I had to manually edit migration file in vendor dir |
@GiTsu, @chiricomarco can you please submit the PR? |
In this file: /src/migrations/2015_02_07_172633_create_role_user_table.php - need to change the follow part of code:
before:
$table->foreign('user_id')
->references('id')
->on()
->onDelete('cascade');
after:
$table->foreign('user_id')
->references('id')
->on($this->prefix . 'users')
->onDelete('cascade');
Cheers
Marco
The text was updated successfully, but these errors were encountered: