mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
docs: add example for yarn v2 with PnP (#7540)
* Add example for yarn v2 with pnp * Update migrations.md
This commit is contained in:
parent
fce559b178
commit
44979afd7a
@ -151,6 +151,11 @@ Example with `ts-node`:
|
||||
ts-node --transpile-only ./node_modules/typeorm/cli.js migration:run
|
||||
```
|
||||
|
||||
Example `ts-node` not using `node_modules` directly:
|
||||
```
|
||||
ts-node $(yarn bin typeorm) migration:run
|
||||
```
|
||||
|
||||
This command will execute all pending migrations and run them in a sequence ordered by their timestamps.
|
||||
This means all sql queries written in the `up` methods of your created migrations will be executed.
|
||||
That's all! Now you have your database schema up-to-date.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user