Bug - Add field in entity
Closed this issue · 2 comments
mithang commented
To Reproduce
Steps to reproduce the behavior:
-
npm run generate:resource:relational -- --name=products
-
npm run migration:generate -- src/database/migrations/CreateProductTable
-
npm run migration:run
-
Add "name" field in products.entity.ts
-
npm run migration:generate -- src/database/migrations/AddNameFieldTable
=> No changes in database schema were found - cannot generate a migration. To create a new empty migration use "typeorm migration:create" command
How to fix? Please
Shchepotin commented
@mithang how did you add the field?