Skip to content

Commit

Permalink
docs: fix typo (#9845)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioGr authored Dec 10, 2024
1 parent 43a0ce7 commit 36c2714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/database/migrations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function down({ payload, req }: MigrateDownArgs): Promise<void> {

## Using Transactions

When migrations are run, each migration is performed in a new [transactions](/docs/database/transactions) for you. All
When migrations are run, each migration is performed in a new [transaction](/docs/database/transactions) for you. All
you need to do is pass the `req` object to any [local API](/docs/local-api/overview) or direct database calls, such as
`payload.db.updateMany()`, to make database changes inside the transaction. Assuming no errors were thrown, the transaction is committed
after your `up` or `down` function runs. If the migration errors at any point or fails to commit, it is caught and the
Expand Down

0 comments on commit 36c2714

Please sign in to comment.