Empty v1 v2 migration

default discord avatar
cbratschi
3 weeks ago
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
    Payload Team
    3 weeks ago

    This workaround will not be necessary after the next release.



    Updated release notes 👍

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.