Let an app name the oldest database server it works with
coreapp.toml's [postgres] or [mysql] min_version: the installer compares it with the Core's PostgreSQL or MariaDB on install and update, and refuses an older Core with both versions, instead of the app failing later. coreapp core reads the versions the same way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -47,7 +47,8 @@ keep its values and add new ones):
|
||||
`needs = ["postgres"]` adds `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER` and
|
||||
`DB_PASSWORD` (`needs = ["mysql"]` the same, for MariaDB; PostgreSQL
|
||||
extensions only a superuser can make, like vector, go in `coreapp.toml`'s
|
||||
`[postgres] extensions`); `needs = ["sso"]` adds `OIDC_ISSUER`, `OIDC_CLIENT_ID` and
|
||||
`[postgres] extensions`, and the oldest server version it works with in
|
||||
`min_version`); `needs = ["sso"]` adds `OIDC_ISSUER`, `OIDC_CLIENT_ID` and
|
||||
`OIDC_CLIENT_SECRET` (the client's callback, PKCE and secret method are in
|
||||
`coreapp.toml`'s `[sso]`); `needs = ["email"]` adds `SMTP_HOST`, `SMTP_PORT`
|
||||
(587), `SMTP_SECURITY` (`starttls`), `SMTP_USER`, `SMTP_PASSWORD` and
|
||||
|
||||
@@ -30,7 +30,10 @@ needs = []
|
||||
# pkce = true # whether it sends PKCE (S256)
|
||||
# token_auth = "client_secret_basic" # or "client_secret_post"
|
||||
|
||||
# With "postgres": extensions the app's database user can't make itself,
|
||||
# made by the Core (coreapp core lists what it has)
|
||||
# With "postgres" (or "mysql"): the oldest server version the app works
|
||||
# with, so an older Core refuses it; for postgres, extensions the app's
|
||||
# database user can't make itself, made by the Core (coreapp core lists
|
||||
# the versions and extensions it has)
|
||||
# [postgres]
|
||||
# min_version = "16"
|
||||
# extensions = ["vector"]
|
||||
|
||||
Reference in New Issue
Block a user