List of database definitions with the following required parameters:
datasource
– Reference on a configuration in storage.datasources
.predicate
– SPEL statement specifying the condition under which the database should be used. As of version 2022 Winter, the condition can only reference the system:tenant
property of DMS objects.default
– Boolean value that specifies whether the database should be used as default database (true
) or not (false
).
Note: Exactly one database has to be the default database.
For each database action requested for a DMS object, the list of databases is read from the top. The first database for which the predicate
is evaluated to true
is used. If no predicate
is true
, the default database is used.
Note |
---|
|
If you apply changes to the configuration of a running system, ensure that existing tenants are directed to their previous database. |