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

Migration error: must specify an orderBy #8

Open
hacksch opened this issue Jul 31, 2023 · 1 comment
Open

Migration error: must specify an orderBy #8

hacksch opened this issue Jul 31, 2023 · 1 comment

Comments

@hacksch
Copy link

hacksch commented Jul 31, 2023

When it try to run migrate or migrate:refesh i get the error:

In Builder.php line 2900:
"You must specify an orderBy clause when using this function."

It's thrown by migrate "2017_02_04_025727_add_link_table_indexes".

I fixed this by adding a "->orderBy('id')" in line 26 of this migration

I'm using

  • Version: latest
  • Environment: PHP 8.2, MariaDB
@hacksch
Copy link
Author

hacksch commented Jul 31, 2023

Maybe it's relevant. I had to update the composer package like described in #6

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

1 participant