Skip to content

Down migrations with mongodb #242

@fleg

Description

@fleg

Down migrations are NOT run in reverse run order with mongodb driver

example:

fleg@fleg-pc:~$ db-migrate up
[INFO] Processed migration 20150312073909-users
[INFO] Processed migration 20150312074623-users-populate
[INFO] Processed migration 20150312080314-users-populate-2
[INFO] Done
fleg@fleg-pc:~$ db-migrate down -c 3
[INFO] Processed migration 20150312073909-users
[INFO] Processed migration 20150312074623-users-populate
[INFO] Processed migration 20150312080314-users-populate-2
[INFO] Done

Probably because of missing sorting by run_on field in allLoadedMigrations function

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions