.env.example identifies migration files under src/database/migrations/**/*.ts and the migrations directory as src/database/migrations.
Before running migrations
- Confirm the application tag/commit and matching migration set.
- Read every pending migration and identify table locks, data rewrites, index changes, and foreign-key effects.
- Take and test a database backup.
- Run against a production-like staging copy.
- Plan rollback or forward-fix steps; not every migration is safely reversible.
Execution
Use the migration command configured by the target release’spackage.json and TypeORM configuration. Do not guess a CLI command from another TypeORM major version.
