You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the migration everything looks ok on the command line:
$ ./node_modules/.bin/mm migrate
up 1
Migration 'test': ok
But when I query the _migrations collection from mongo command line I get:
> db._migrations.find
2017-03-02T23:40:28.320-0500 E QUERY [thread1] TypeError: db._migrations is undefined :
@(shell):1:1
>
The screenshot below also shows something odd from MongoDB Compass where the _migrations collection is not shown under the test db on the left panel yet shows up as a collection in the right panel. If I click on the _migrations collection in the right panel I get the error notification you see in the top right corner.
It seems like the collection is not created properly in the test db.
The text was updated successfully, but these errors were encountered:
I am new to mongo and mongodb-migrations so I'm not sure I am doing something wrong but I noted the following:
Using the following migration file:
and
When I run the migration everything looks ok on the command line:
But when I query the
_migrations
collection from mongo command line I get:The screenshot below also shows something odd from MongoDB Compass where the
_migrations
collection is not shown under thetest
db on the left panel yet shows up as a collection in the right panel. If I click on the_migrations
collection in the right panel I get the error notification you see in the top right corner.It seems like the collection is not created properly in the
test
db.The text was updated successfully, but these errors were encountered: