Skip to content

Commit

Permalink
doc: Add migration command documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AxiosLeo committed Feb 6, 2024
1 parent 831b022 commit 203932d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ try {

### Migration

> [Migration examples](./examples/migration/).
```javascript
'use strict';

Expand All @@ -220,6 +222,34 @@ module.exports = {
};
```

- Run migration

```bash
orm-mysql migrate -h

Description:

Migrate database

Usage:

migrate [options] [--] [action] <dir>

Options:

-d, --debug [false] debug mode
--host [localhost] mysql host
--port [3306] port number to connect to the database
--user [root] username for connect to the database
--pass password to connect to the database
--db database name

Arguments:

*action up or down
dir migration directory
```

### Custom query driver

```javascript
Expand Down

0 comments on commit 203932d

Please sign in to comment.