Skip to content

Помилка міграції #104

@kant2002

Description

@kant2002
> npx ts-node --project migrations/tsconfig.json node_modules/migrate-mongo/bin/migrate-mongo.js up -f migrate-mongo-config.ts
(node:37576) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Collection migrations does not exist. Skipping js files conversion.
Start updating 100000 subscriptions with batch size of 1000
Totally updated: 0
Last updated: undefined
ERROR: Could not migrate up 20230407142056-delete-userprofile-officeidentifier.ts: index not found with name [features.office.officeIdentifier_1] MongoServerError: index not found with name [features.office.officeIdentifier_1]
    at Connection.sendCommand (D:\d\kant\GitHub\diia\be-user-service\node_modules\mongodb\src\cmap\connection.ts:498:17)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Connection.command (D:\d\kant\GitHub\diia\be-user-service\node_modules\mongodb\src\cmap\connection.ts:562:22)
    at async Server.command (D:\d\kant\GitHub\diia\be-user-service\node_modules\mongodb\src\sdam\server.ts:310:16)
    at async executeOperation (D:\d\kant\GitHub\diia\be-user-service\node_modules\mongodb\src\operations\execute_operation.ts:155:14)
    at async up (D:\d\kant\GitHub\diia\be-user-service\migrations\20230407142056-delete-userprofile-officeidentifier.ts:11:9)
    at async migrateItem (D:\d\kant\GitHub\diia\be-user-service\node_modules\migrate-mongo\lib\actions\up.js:25:9)
    at async pEachSeries (D:\d\kant\GitHub\diia\be-user-service\node_modules\p-each-series\index.js:8:23)
    at async Object.module.exports [as up] (D:\d\kant\GitHub\diia\be-user-service\node_modules\migrate-mongo\lib\actions\up.js:51:3)

Metadata

Metadata

Assignees

No one assigned

    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