Repository navigation
Add default schemas that are different for each instance type - #6047
Conversation
warwickschroeder
left a comment
There was a problem hiding this comment.
Two things im not sure about:
- the default schema naming
- Throwing if error and audit are on the same schema without a very good reason.
| | Primary (error) | `sc` | | ||
| | Audit | `audit` | | ||
|
|
||
| * ServiceControl does not create the schema. Create it, and grant the configured user rights on it, before running setup. |
There was a problem hiding this comment.
I thought we were letting SCMU to at least try create the database and schema?
There was a problem hiding this comment.
So it seems that SC will create the schema if it can, I'll update the docs to match what is actually true
There was a problem hiding this comment.
It still says it does not create the schema?
| | `Storage.BodyStorage.Type` | `RavenAttachments`, `FileSystem`, `AzureBlob`, `S3` | the persister | 6.20.0 | | ||
| | `Limits.MaxBodySizeToStore` | bytes | `MaxBodySizeToStore`, SQL Server and PostgreSQL only | 6.20.0 | | ||
| | `Storage.Schema` | `Default`, `Custom` | `Database/Schema`, SQL Server and PostgreSQL only | Unreleased | | ||
| | `Storage.Schema` | `Default` when the schema is `sc`, `Custom` for other configured schemas | `Database/Schema`, SQL Server and PostgreSQL only | Unreleased | |
There was a problem hiding this comment.
Will also need to update the docs PR
|
Shouldn't this be up to the user to decide? |
This has now been updated to
|
Separate primary and audit SQL schemas
Why
The schema default was to share the same schema, however there was no testing that ensures this is actually supported.
For SQL Server and PostgreSQL:
pre-created schema.
Custom schema names remain supported. Operators must create the schema and grant the configured user rights before running setup if the account does not have access to schema creation.