improve description of generating migrations

This commit is contained in:
Johann150 2022-11-03 21:45:03 +01:00
parent e79d7879c6
commit 408c5c3c65
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -297,8 +297,11 @@ PostgreSQL array indices **start at 1**.
When `IN` is performed on a column that may contain `NULL` values, use `OR` or similar to handle `NULL` values.
### creating migrations
In `packages/backend`, run:
First make changes to the entity files in `packages/backend/src/models/entities/`.
Then, in `packages/backend`, run:
```sh
yarn build
npx typeorm migration:generate -d ormconfig.js -o <migration name>
```