title: Nestjs problem creating mysql table from entity
body: <p>I'm having a problem when I change an entity file and Nest/TypeOrm regenerates the mysql table. It doesn't reflect what I have in the entity file</p>
  
  <p>this is my <strong>user.entity.ts</strong></p>
  
  <pre><code>import { BaseEntity, Entity, Column, Unique, PrimaryGeneratedColumn } from "typeorm";
  
  @Entity()
  @Unique(['id'])
  export class User extends BaseEntity {
    @PrimaryGeneratedColumn()
    id: number;
  
    @Column()
    uid: string;
  
    @Column()
    name: string;
  
    @Column()
    surname: string;
  
    @Column()
    email: string;
  
    @Column()
    skype: string;
  
    @Column()
    levelClassDone: boolean;
  
    @Column({default: 1, nullable: true})
    userType: number;
  }
  </code></pre>
  
  <p>this is the description of the created table in mysql:</p>
  
  <pre><code>+----------------+--------------+------+-----+---------+-------+
  | Field          | Type         | Null | Key | Default | Extra |
  +----------------+--------------+------+-----+---------+-------+
  | name           | varchar(255) | NO   |     | NULL    |       |
  | surname        | varchar(255) | NO   |     | NULL    |       |
  | email          | varchar(255) | NO   | UNI | NULL    |       |
  | uid            | varchar(255) | NO   |     | NULL    |       |
  | skype          | varchar(255) | NO   |     | NULL    |       |
  | levelClassDone | tinyint      | NO   |     | NULL    |       |
  | userType       | int          | YES  |     | 1       |       |
  | id             | varchar(255) | NO   | PRI | NULL    |       |
  +----------------+--------------+------+-----+---------+-------+
  </code></pre>
  
  <p><strong>id</strong> is not <em>numeric</em> and neither <em>auto_increment</em></p>
  
  <p>Seems like it's caching old user.entity.ts versions where I had different field specifications. I tried to drop the table and also drop the whole database. </p>