Yesterday I kept having a migration pending whenever I ran php artisan migrate. I kept looking in my database/migrations. This showed up when deploying to Forge and it kept trying to run the hidden migration.

I did it a bit to myself. I was playing with pgvector and must have created a migration, then deleted it. The issue was the vendor directory which I hadn’t encountered before.

I was running php artisan migrate:status and there it was, staring at me even though I couldn’t find it in my migrations folder… late-night brain was not helping me out here.

2024_08_03_000000_create_vector_extension ...................... Pending

It took me a while to think of just searching the entire project for the migration name.

find . -type f -name "2024_08_03_000000_create_vector_extension.php"

…and there it was

rm ./vendor/pgvector/pgvector/src/laravel/migrations/2024_08_03_000000_create_vector_extension.php

Hopefully this helps someone else out there since either my google-foo was off or there’s a need for posts like this. …also ChatGPT was helpless in this situation, too. Still could have been user-error there, too. 🙈