This commit is contained in:
syuilo 2019-06-29 23:12:00 +09:00
parent 763b70e01b
commit bb2d76ffa3
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
5 changed files with 55 additions and 58 deletions

View file

@ -219,8 +219,6 @@ const user = await Users.findOne(userId).then(ensure);
```
### Migration作成方法
コードの変更をした後、`ormconfig.json``npm run ormconfig`で生成)を用意し、
```
npm i -g ts-node
ts-node ./node_modules/typeorm/cli.js migration:generate -n 変更の名前