Migration foreign

Posted 11 months ago by PotTime

Hello, I have a problem: When I try to run the command php artisan migrate:refresh --seed I have a problem: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1 (SQL: alter table `temp_disabled_licences` add constraint `temp_disabled_licences_user_foreign` foreign key (`user`) references `users` ())

Any help? Thanks

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.