Open gilzow opened 10 months ago
Adding more. This section https://docs.platform.sh/add-services/mysql.html#define-permissions
default_schema
- Which of the defined schemas to default to. If not specified, the path property of the relationship isnull
and so tools such as the Platform.sh CLI can’t access the relationship.
If an endpoint only has permissions to a single schema, then default_schema
is not required and will default to the single schema. If the endpoint has permissions to more than one schema and default_schema
is not included, the system will default to none
. The cli can still access the relationship and will prompt the user for the schema to use, or if in non-interactive mode, will default to none
.
Where on docs.platform.sh should be changed?
https://docs.platform.sh/add-services/mysql.html#multiple-databases
What exactly should be updated?
In a mariadb or postegreSQL services, users can define multiple schemas. In a defined endpoint, that endpoint can have access to one or more of those schemas. Example:
If you then create a relationship to the
mymysql
endpoint in the app container:In the exposed PLATFORM_RELATIONSHIPS information, only the default_schema (as
path
) will be exposed:We need to add a note or a warning that the relationship will not expose any information about any other schemas the endpoint's user has access to beyond the
default_schema
Additional context
The PostgreSQL documentation has this section:
We might consider adding this explanation to the Mariadb docs as well, and then adding the note that even though an endpoint's user may have access to more than one schema, only the
default_schema
will be displayed inPLATFORM_RELATIONSHIPS