Skip to content

migrate:* npm scripts reference HTTP endpoints that don't exist #1198

Description

@RUKAYAT-CODER

package.json scripts migrate:run, migrate:status, migrate:rollback, migrate:rollback:count, migrate:rollback:to and migrate:reset all curl http://localhost:3000/migrations/....

No controller in src/ exposes those endpoints (no MigrationController / migrations/run route exists), so every script fails against a running app.

Fix: either remove the scripts, or point them at the TypeORM CLI like the migration:* scripts do (npx typeorm-ts-node-commonjs migration:run -d src/config/datasource.ts).

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