its seem the migration has done, the problem its was the config.php, but its look like there another problem π
$ php flarum migrate
Migrating Flarum...
Migrated: 2018_01_11_093900_change_access_tokens_columns
Migrated: 2018_01_11_094000_change_access_tokens_add_foreign_keys
Migrated: 2018_01_11_095000_change_api_keys_columns
Migrated: 2018_01_11_101800_rename_auth_tokens_to_registration_tokens
Migrated: 2018_01_11_102000_change_registration_tokens_rename_id_to_token
Migrated: 2018_01_11_102100_change_registration_tokens_created_at_to_datetime
Migrated: 2018_01_11_120604_change_posts_table_to_innodb
Migrated: 2018_01_11_155200_change_discussions_rename_columns
Migrated: 2018_01_11_155300_change_discussions_add_foreign_keys
Migrated: 2018_01_15_071700_rename_users_discussions_to_discussion_user
Migrated: 2018_01_15_071800_change_discussion_user_rename_columns
Migrated: 2018_01_15_071900_change_discussion_user_add_foreign_keys
Migrated: 2018_01_15_072600_change_email_tokens_rename_id_to_token
Migrated: 2018_01_15_072700_change_email_tokens_add_foreign_keys
Migrated: 2018_01_15_072800_change_email_tokens_created_at_to_datetime
Migrated: 2018_01_18_130400_rename_permissions_to_group_permission
Migrated: 2018_01_18_130500_change_group_permission_add_foreign_keys
Migrated: 2018_01_18_130600_rename_users_groups_to_group_user
Migrated: 2018_01_18_130700_change_group_user_add_foreign_keys
Migrated: 2018_01_18_133000_change_notifications_columns
Migrated: 2018_01_18_133100_change_notifications_add_foreign_keys
Migrated: 2018_01_18_134400_change_password_tokens_rename_id_to_token
Migrated: 2018_01_18_134500_change_password_tokens_add_foreign_keys
Migrated: 2018_01_18_134600_change_password_tokens_created_at_to_datetime
Migrated: 2018_01_18_135000_change_posts_rename_columns
In Connection.php line 664:
SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table xxxx_posts
add constraint xxxx_posts_user_id_foreign
foreign key (user_id
) references xxxx_users
(id
) on delete set null)
In PDOStatement.php line 119:
SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint
In PDOStatement.php line 117:
SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint
migrate