Open
Description
Describe the Bug
I have been writing migrations for quite some time now, and it all goes fine as long as I am creating and running migrations on my own. However, when I merge a PR with someone else's migrations and run them, migrate:create creates the same migration (which was already merged and run) again. Why are the successfully run migrations being re-created?
Link to the code that reproduces this issue
pnpx create-payload-app@latest -t blank
Reproduction Steps
Attempt to execute npx run migrate:create
command. This will create migration file having the same content which is being generated already.
Which area(s) are affected? (Select all that apply)
area: core
Environment Info
Binaries:
Node: 20.18.2
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant Packages:
payload: 3.33.0
next: 15.2.2
@payloadcms/db-postgres: 3.33.0
@payloadcms/email-nodemailer: 3.33.0
@payloadcms/graphql: 3.33.0
@payloadcms/next/utilities: 3.33.0
@payloadcms/payload-cloud: 3.33.0
@payloadcms/plugin-cloud-storage: 3.33.0
@payloadcms/plugin-import-export: 3.33.0
@payloadcms/richtext-lexical: 3.33.0
@payloadcms/storage-azure: 3.33.0
@payloadcms/storage-s3: 3.33.0
@payloadcms/translations: 3.33.0
@payloadcms/ui/shared: 3.33.0
react: 19.0.0
react-dom: 19.0.0
Operating System:
Platform: win32
Arch: x64
Version: Windows 11 Pro
Available memory (MB): 16159
Available CPU cores: 8