docs: small structure fixed to db command reference (#9446)

This commit is contained in:
Shahed Nasser
2024-10-14 09:58:39 +03:00
committed by GitHub
parent 1f682daf5c
commit c9ce918982

View File

@@ -154,6 +154,8 @@ Use this command if you're setting up a Medusa project or database manually.
</Table.Body>
</Table>
---
## db\:create
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>
## Options
### Options
<Table>
<Table.Header>
@@ -229,6 +231,8 @@ Use this command if you want to only create a database.
</Table.Body>
</Table>
---
## db\:generate
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...>
```
## Arguments
### Arguments
<Table>
<Table.Header>
@@ -268,6 +272,8 @@ npx medusa db:generate <module_names...>
</Table.Body>
</Table>
---
## db\:migrate
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>
---
## db\:rollback
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...>
```
### Arguments
<Table>
<Table.Header>
<Table.Row>
@@ -400,6 +410,8 @@ npx medusa db:rollback <module_names...>
</Table.Body>
</Table>
---
## db\:sync-links
Sync the database with the link definitions in your application, including the definitions in Medusa's modules.