-
-
Notifications
You must be signed in to change notification settings - Fork 841
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
Migration Incomplete, SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint ... #1730
Comments
There's none? Not even the core extensions are installed? |
That's the output I have. I disabled all of them before the migration |
@marcteys what is the output of |
Here is my output for mysql version:
|
@marcteys Do you still have the database at the exact state of when the installer broke down? Or can you easily reproduce this? If so, please check the possible reasons mentioned in this StackOverflow answer. |
Closing as stale |
When doing a migration from flarum beta, 7.1 the migration stop at some point and returns the error below.
This happens after the command
php flarum migrate
.I don't have any ideas on how to solve this issue. If I remove the file
2018_01_18_135100_change_posts_add_foreign_keys.php
fromcore/migrations
(and others problematics files, it's kinda working but the migration is not fully performed (some bugs are present in the forum, I can see the posts but can't login).I have the feeling that it might come from
->onDelete('set null');
but I can't dig more. It might be related to this issue.Do you have any ideas on how to solve it?
Environment
The text was updated successfully, but these errors were encountered: