Skip to content

Migrations order are not reversed for down operation #12442

Open
@SamTyurenkov

Description

@SamTyurenkov

Describe the Bug

when i run payload migrate:reset it is executed in the same order as payload

Image

Link to the code that reproduces this issue

https://github.com/SamTyurenkov/payload-docker/tree/dimovtax

Reproduction Steps

  1. cd my-project && cp .env.example .env to copy the example environment variables
  2. apt-get update && apt-get install make docker docker-compose required for docker and makefile
  3. make docker-build && make docker-dev to install dependencies and start the dev server
  4. make npm ARGS="run payload migrate"
  5. make npm ARGS="run payload migrate:reset"

Which area(s) are affected? (Select all that apply)

Not sure

Environment Info

see package.json and docker-compose in the provided link

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions