Antelope-Valley-College / polr

GNU General Public License v2.0
24 stars 10 forks source link

Migration error: must specify an orderBy #8

Open hacksch opened 1 year ago

hacksch commented 1 year ago

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

hacksch commented 1 year ago

Maybe it's relevant. I had to update the composer package like described in https://github.com/Antelope-Valley-College/polr/pull/6