forked from FoundKeyGang/FoundKey
improve description of generating migrations
This commit is contained in:
parent
e79d7879c6
commit
408c5c3c65
1 changed files with 4 additions and 1 deletions
|
@ -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.
|
When `IN` is performed on a column that may contain `NULL` values, use `OR` or similar to handle `NULL` values.
|
||||||
|
|
||||||
### creating migrations
|
### 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
|
```sh
|
||||||
|
yarn build
|
||||||
npx typeorm migration:generate -d ormconfig.js -o <migration name>
|
npx typeorm migration:generate -d ormconfig.js -o <migration name>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue