bug: mikro-orm migration:list
doesn't work with mongodb
driver (Cannot read properties of undefined (reading 'toISOString'))
#4698
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Describe the bug
The
cli
package usesexecuted_at
property from the migration tablehttps://github.com/mikro-orm/mikro-orm/blob/v5.8.1/packages/cli/src/commands/MigrationCommandFactory.ts#L150
The
migrations
package creates theexecuted_at
property in the migration tablehttps://github.com/mikro-orm/mikro-orm/blob/v5.8.1/packages/migrations/src/MigrationStorage.ts#L76
But the
migrations-mongodb
package creates thecreated_at
property in the migration tablehttps://github.com/mikro-orm/mikro-orm/blame/v5.8.1/packages/migrations-mongodb/src/MigrationStorage.ts#L22
Stack trace
To Reproduce
Steps to reproduce the behavior:
npx mikro-orm migration:list
Expected behavior
No errors
Additional context
Versions
➜ npx mikro-orm debug Current MikroORM CLI configuration - dependencies: - mikro-orm 5.8.1 - node 18.13.0 - mongodb 5.8.1 - typescript 4.9.5 - package.json found - ts-node enabled - searched config paths: - /Users/user/projects/company/service/apps/api/src/nestjs/data-sources/mongo.ts (found) - /Users/user/projects/company/service/dist/apps/api/src/nestjs/data-sources/mongo.js (found) - /Users/user/projects/company/service/apps/api/src/mikro-orm.config.ts (not found) - /Users/user/projects/company/service/apps/api/mikro-orm.config.ts (not found) - /Users/user/projects/company/service/apps/api/src/mikro-orm.config.js (not found) - /Users/user/projects/company/service/apps/api/mikro-orm.config.js (not found) - configuration found - database connection succesful - will use `entities` array (contains 4 references and 0 paths)
The text was updated successfully, but these errors were encountered: