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

Fix Example Init Code #280

Merged
merged 2 commits into from
Dec 17, 2014
Merged

Fix Example Init Code #280

merged 2 commits into from
Dec 17, 2014

Conversation

danprime
Copy link
Contributor

Fix field declarations and references so that foreign keys and references work.

Foreign keys need to be declared as unsigned .
Correct Foreign key field mapping.

$table->increments('id');
$table->string('session_id');
$table->increments('id')->unsigned();
$table->string('session_id')->unsigned();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just noticed that session_id should be an integer, could you change that too please?

alexbilbie added a commit that referenced this pull request Dec 17, 2014
@alexbilbie alexbilbie merged commit 7fff4a8 into thephpleague:master Dec 17, 2014
@alexbilbie
Copy link
Contributor

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

Successfully merging this pull request may close these issues.

2 participants