mirror of
https://github.com/docmost/docmost.git
synced 2025-11-20 04:21:10 +10:00
Setup TypeORM
This commit is contained in:
@ -45,6 +45,30 @@ $ npm run start:dev
|
||||
$ npm run start:prod
|
||||
```
|
||||
|
||||
|
||||
## Migrations
|
||||
|
||||
```bash
|
||||
# This creates a new empty migration file named 'init'
|
||||
$ npm run migration:create --name=init
|
||||
|
||||
# Generates 'init' migration file from existing entities to update the database schema
|
||||
$ npm run migration:generate --name=init
|
||||
|
||||
# Runs all pending migrations to update the database schema
|
||||
$ npm run migration:run
|
||||
|
||||
# Reverts the last executed migration
|
||||
$ npm run migration:revert
|
||||
|
||||
# Reverts all migrations
|
||||
$ npm run migration:revert
|
||||
|
||||
# Shows the list of executed and pending migrations
|
||||
$ npm run migration:show
|
||||
|
||||
|
||||
|
||||
## Test
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user