I am trying to set up migrations for Nestjs TypeORM, in my TypeOrmModule.forRoot() i have added the desired folder for the migrations, but it keeps adding the migrations to the root folder.
TypeOrmModule.forRoot({
type: 'mssql',
host: 'test',
port: 1,
username: 'test',
password: 'test',
database: 'test',
entities: [__dirname + '/**/entities/*{.ts,.js}'],
synchronize: false,
options: {
useUTC: true,
},
migrations: [__dirname + '/**/migration/*.ts'],
cli: {
migrationsDir: __dirname + '/**/migration',
},
})