title: TypeORM: "No migrations pending" when attempting to run migrations manually
body: <p>I have a new web app and I've written a migrator to create a user table. However, no matter what I try, typeorm does not appear to find this migrator and hence, does not run it.</p>
  <p>My file structure (other files/folders not shown):</p>
  <pre><code>├── Server
  │   ├── dist
  |   |   ├── Migrations
  |   |   |   ├── 1234567891234567890-AddUserTable.js
  |   |   |   ├── 1234567891234567890-AddUserTable.js.map
  |   |   |   ├── 1234567891234567890-AddUserTable.d.ts
  │   ├── src
  |   |   ├── Migrations
  |   |   |   ├── 1234567891234567890-AddUserTable.ts
  |   |   ├── app.module.ts
  </code></pre>
  <p><strong>app.module.ts</strong></p>
  <pre><code>@Module({
      imports: [
          ConfigModule.forRoot({ envFilePath: '.env' }),
          TypeOrmModule.forRootAsync({
              imports: [ConfigModule],
              useFactory: (configService: ConfigService) =&gt; ({
                  type: 'mysql',
                  host: configService.get('TYPEORM_HOST'),
                  port: +configService.get&lt;number&gt;('TYPEORM_PORT'),
                  username: configService.get('TYPEORM_USERNAME'),
                  password: configService.get('TYPEORM_PASSWORD'),
                  database: configService.get('TYPEORM_DATABASE'),
                  synchronize: configService.get('TYPEORM_SYNCHRONIZE'),
                  entities: [__dirname + '/**/*.entity{.ts,.js}'],
                  migrations: [__dirname + '/Migrations/**/*.js'],
                  migrationsRun: false,
                  cli: {
                      migrationsDir: './Migrations',
                  },
              }),
              inject: [ConfigService],
          }),
      ],
      controllers: [],
      providers: [],
  })
  export class AppModule {
      constructor(private connection: Connection) {}
  }
  </code></pre>
  <p>In order to run this, in my console window, I type: <code>nest start</code> in order get my Server started.</p>
  <p>Then, I run <code>npx typeorm migration:run</code> which I get:</p>
  <pre><code>query: SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = 'myDB' AND `TABLE_NAME` = 'migrations'
  query: SELECT * FROM `myDB`.`migrations` `migrations` ORDER BY `id` DESC
  No migrations are pending
  </code></pre>
  <p>If I look in my DB, I see a <code>migrations</code> table with no entries inside.</p>
  <p>I have tried to delete my migrator file and create it again with a more recent timestamp and that does not work either.</p>
  <pre><code>npx typeorm migration:create -n &quot;MyMigratorName&quot;
  </code></pre>
  <p>Any help would be greatly appreciated.</p>