-
Notifications
You must be signed in to change notification settings - Fork 236
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 in foreign key #33
Comments
@jsDotx3 It's already included can you give me an example of model? |
Yes,review. https://mega.nz/#!kc9glJCD!cxcjYLLDErDES_eM_b2cm8inPGkDUbUZeIW3Js6dA78 Doesn't add method unsigned() in foreign key. SO: Win10 x64. Regards. |
Hello Guys, for example. It create this code (only Schema::create) public function up()
Instead of this code (with Schema::create & Schema::table) public function up()
} |
When you generate the foreign key, you need to add the unsigned () method to the corresponding field.
$table->integer('type_member') (When you perform the migration, it fails, because the unsigned method is missing)
$table->integer('type_member')->unsigned() (When you perfom the migration, it ok).
Documentation about Foreign Key: https://laravel.com/docs/5.4/migrations#foreign-key-constraints
Regards.
The text was updated successfully, but these errors were encountered: