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

Issue on participants migration #5

Closed
Ronto opened this issue Sep 8, 2014 · 3 comments
Closed

Issue on participants migration #5

Ronto opened this issue Sep 8, 2014 · 3 comments

Comments

@Ronto
Copy link

Ronto commented Sep 8, 2014

When i migrate the package every table inserted fine except the participants table.

That gives the following error

[PDOException]

SQLSTATE[HY000]: General error: 1005 Can't create table 'lara.#sql-bf8_42' (er
no: 150)

igrate [--bench[="..."]] [--database[="..."]] [--force] [--path[="..."]] [--pac
age[="..."]] [--pretend] [--seed]

@Ronto
Copy link
Author

Ronto commented Sep 8, 2014

Okay found the problem sorry,

I had to specify

$table->engine = 'InnoDB';

In the migration

@andheiberg
Copy link
Owner

That is very weird...

Never had that happen, did you discover why this was necessary in the process?

@lostcause
Copy link

Apparently MyISAM doesn't support foreign keys, hence the need to specify InnoDB as an engine.

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