docs: small structure fixed to db command reference (#9446)
This commit is contained in:
@@ -154,6 +154,8 @@ Use this command if you're setting up a Medusa project or database manually.
|
|||||||
</Table.Body>
|
</Table.Body>
|
||||||
</Table>
|
</Table>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## db\:create
|
## db\:create
|
||||||
|
|
||||||
Creates a database for the Medusa application with the specified name, if it doesn't exit.
|
Creates a database for the Medusa application with the specified name, if it doesn't exit.
|
||||||
@@ -170,7 +172,7 @@ Use this command if you want to only create a database.
|
|||||||
|
|
||||||
</Note>
|
</Note>
|
||||||
|
|
||||||
## Options
|
### Options
|
||||||
|
|
||||||
<Table>
|
<Table>
|
||||||
<Table.Header>
|
<Table.Header>
|
||||||
@@ -229,6 +231,8 @@ Use this command if you want to only create a database.
|
|||||||
</Table.Body>
|
</Table.Body>
|
||||||
</Table>
|
</Table>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## db\:generate
|
## db\:generate
|
||||||
|
|
||||||
Generate a migration file for the latest changes in one or more modules.
|
Generate a migration file for the latest changes in one or more modules.
|
||||||
@@ -237,7 +241,7 @@ Generate a migration file for the latest changes in one or more modules.
|
|||||||
npx medusa db:generate <module_names...>
|
npx medusa db:generate <module_names...>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Arguments
|
### Arguments
|
||||||
|
|
||||||
<Table>
|
<Table>
|
||||||
<Table.Header>
|
<Table.Header>
|
||||||
@@ -268,6 +272,8 @@ npx medusa db:generate <module_names...>
|
|||||||
</Table.Body>
|
</Table.Body>
|
||||||
</Table>
|
</Table>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## db\:migrate
|
## db\:migrate
|
||||||
|
|
||||||
Run the latest migrations to reflect changes on the database, and sync link definitions with the database.
|
Run the latest migrations to reflect changes on the database, and sync link definitions with the database.
|
||||||
@@ -363,6 +369,8 @@ Use this command if you've updated the Medusa packages, or you've created custom
|
|||||||
</Table.Body>
|
</Table.Body>
|
||||||
</Table>
|
</Table>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## db\:rollback
|
## db\:rollback
|
||||||
|
|
||||||
Revert the last migrations ran on one or more modules.
|
Revert the last migrations ran on one or more modules.
|
||||||
@@ -371,6 +379,8 @@ Revert the last migrations ran on one or more modules.
|
|||||||
npx medusa db:rollback <module_names...>
|
npx medusa db:rollback <module_names...>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Arguments
|
||||||
|
|
||||||
<Table>
|
<Table>
|
||||||
<Table.Header>
|
<Table.Header>
|
||||||
<Table.Row>
|
<Table.Row>
|
||||||
@@ -400,6 +410,8 @@ npx medusa db:rollback <module_names...>
|
|||||||
</Table.Body>
|
</Table.Body>
|
||||||
</Table>
|
</Table>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## db\:sync-links
|
## db\:sync-links
|
||||||
|
|
||||||
Sync the database with the link definitions in your application, including the definitions in Medusa's modules.
|
Sync the database with the link definitions in your application, including the definitions in Medusa's modules.
|
||||||
|
|||||||
Reference in New Issue
Block a user