php artisan migrate tries to create migrations table again #45197
Unanswered
dennis-koster
asked this question in
Q&A
Replies: 3 comments 7 replies
-
Possibly related to: https://laravel.com/docs/9.x/upgrade#postgres-schema-configuration |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm having this similar issue, not sure what happened |
Beta Was this translation helpful? Give feedback.
0 replies
-
The same happened to me, any solutions so far? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description:
After upgrading my php version from
8.0
to8.1
, and Laravel fromv8.83.6
tov9.42.2
, my migrations are no longer working. It appears that themigrate
command, as well as themigrate:status
command struggle to find the existingmigrations
table. It therefor tries to create it, but it actually already exists.Querying the migrations table in tinker reveals that there are records in there. Also, the fact that the migrate command returns a
Duplicate table
SQL error seems to prove that it can in fact connect to the database.Steps To Reproduce:
Beta Was this translation helpful? Give feedback.
All reactions