db-migrate / mongodb

mongodb driver for db-migrate
Other
25 stars 58 forks source link

The driver you are using does not support the new state management. #48

Closed djw-sl closed 3 years ago

djw-sl commented 3 years ago

I get this warning and no migrations run when calling db-migrate up

Here is my setup:

db-migrate version: 1.0.0-beta15 db-migrate-mongodb version: 1.5.0

in my migrations folder I have setup a package.json file with the following:

{
  "type": "module"
}

so that I can use ESM and imports in my migrations.

wzrdtales commented 3 years ago

this is not a bug, just a warning. the mongodb driver is indeed missing the new state management, however, if you don't use v2 migrations (which is unlikely since they're intentionally not yet documented) there is nothing to worry about.

djw-sl commented 3 years ago

Ok thanks.

Would there be any reasons of why my new migration file is not picked up?

When I create a new migration and the run db-migrate up I only get the following info:

$ db-migrate up
[WARN] The driver you are using does not support the new state management. Please raise an issue in the repository of your driver maintainer
[INFO] [migration] Nothing to run
[INFO] Done

The new migration file is not ran.