Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Empty v1 v2 migration

default discord avatar
cbratschilast year
1

I upgraded a project from Payload 1.x to 2.x. The migration file to add the latest property was created according to the upgrade notes. However, the created file contains empty migration functions. How to create the correct migrations?



My pages collection is empty in the admin panel. I guess this is because of the missing latest property. Other collections are shown correctly.



Solved it by using — in npm.

  • discord user avatar
    denolfe
    last year

    This workaround will not be necessary after the next release.



    Updated release notes 👍

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.