docs: document new migration script option for db:migrate (#10986)
* docs: document new migration script option for db:migrate * update versions
This commit is contained in:
@@ -276,7 +276,7 @@ npx medusa db:generate <module_names...>
|
||||
|
||||
## 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, sync link definitions with the database, and run migration data scripts.
|
||||
|
||||
```bash
|
||||
npx medusa db:migrate
|
||||
@@ -325,6 +325,30 @@ Use this command if you've updated the Medusa packages, or you've created custom
|
||||
<Table.Row>
|
||||
<Table.Cell>
|
||||
|
||||
`--skip-scripts`
|
||||
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
|
||||
Skip running data migration scripts. This option is added starting from
|
||||
[Medusa v2.3.0](https://github.com/medusajs/medusa/releases/tag/v2.3.0).
|
||||
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
|
||||
No
|
||||
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
|
||||
Data migration scripts are run by default starting from
|
||||
[Medusa v2.3.0](https://github.com/medusajs/medusa/releases/tag/v2.3.0).
|
||||
|
||||
</Table.Cell>
|
||||
</Table.Row>
|
||||
<Table.Row>
|
||||
<Table.Cell>
|
||||
|
||||
`--execute-safe-links`
|
||||
|
||||
</Table.Cell>
|
||||
|
||||
Reference in New Issue
Block a user