Skip to content

Commit 7fa879c

Browse files
authored
docs: typos and links (#12484)
- update SantizeCollection to SanitizedCollection in TypeScript section - fix new issue link in Multi-Tenant plugin section - correct You can disabled to disable in Core Features - fix duplicate section links for MongoDB and Postgres in Migrations section
1 parent 166dafe commit 7fa879c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/database/migrations.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,13 @@ Depending on which Database Adapter you use, your migration workflow might diffe
183183

184184
In relational databases, migrations will be **required** for non-development database environments. But with MongoDB, you might only need to run migrations once in a while (or never even need them).
185185

186-
#### MongoDB
186+
#### MongoDB#mongodb-migrations
187187

188188
In MongoDB, you'll only ever really need to run migrations for times where you change your database shape, and you have lots of existing data that you'd like to transform from Shape A to Shape B.
189189

190190
In this case, you can create a migration by running `pnpm payload migrate:create`, and then write the logic that you need to perform to migrate your documents to their new shape. You can then either run your migrations in CI before you build / deploy, or you can run them locally, against your production database, by using your production database connection string on your local computer and running the `pnpm payload migrate` command.
191191

192-
#### Postgres
192+
#### Postgres#postgres-migrations
193193

194194
In relational databases like Postgres, migrations are a bit more important, because each time you add a new field or a new collection, you'll need to update the shape of your database to match your Payload Config (otherwise you'll see errors upon trying to read / write your data).
195195

docs/plugins/multi-tenant.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ This plugin sets up multi-tenancy for your application from within your [Admin P
1616
If you need help, check out our [Community
1717
Help](https://payloadcms.com/community-help). If you think you've found a bug,
1818
please [open a new
19-
issue](https://github.com/payloadcms/payload/issues/new?assignees=&labels=plugin%3A%multi-tenant&template=bug_report.md&title=plugin-multi-tenant%3A)
20-
with as much detail as possible.
19+
issue](https://github.com/payloadcms/payload/issues/new/choose) with as much
20+
detail as possible.
2121
</Banner>
2222

2323
## Core features
@@ -35,7 +35,7 @@ This plugin sets up multi-tenancy for your application from within your [Admin P
3535
By default this plugin cleans up documents when a tenant is deleted. You should ensure you have
3636
strong access control on your tenants collection to prevent deletions by unauthorized users.
3737

38-
You can disabled this behavior by setting `cleanupAfterTenantDelete` to `false` in the plugin options.
38+
You can disable this behavior by setting `cleanupAfterTenantDelete` to `false` in the plugin options.
3939

4040
</Banner>
4141

0 commit comments

Comments
 (0)