Reputation: 1058
@Column({ nullable: true, default: null })
baseCurrency: string;
@Column({ nullable: true, default: null })
description: string;
I am having an entity in which above fields are defined , these fields are included in migration .
after generating the migration I am running typeorm migration:run
so as per documentation , when i will run generate again then there should be nothing because i didn't change anything but in new migration these two deilds are there .
Any suggestion please
Upvotes: 0
Views: 401
Reputation: 27
I encountered the same issue and this worked for me:
@Column({ nullable: true, default: () => "NULL" })
baseCurrency: string;
@Column({ nullable: true, default: () => "NULL" })
description: string;
Upvotes: 0
Reputation: 31
Im facing the same issue with
So far I have found that both nullable: true
and default: true
cause the problem.
What helped was trying the rc version of typeorm
npm install [email protected]
Upvotes: 1