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:
+13
-1
@@ -113,6 +113,16 @@ them with the Core. Check the app's requirements against them before
|
||||
choosing a need (its docs, the images in its own compose file, its
|
||||
migrations): a feature the Core's version lacks fails only when the code
|
||||
using it runs, so deploy, `coreapp check` and a sign-in can all pass.
|
||||
If the app needs a newer database server than some Cores have, put its
|
||||
oldest working version in `coreapp.toml`, so an older Core refuses to
|
||||
install it (with both versions in the message) instead of breaking later:
|
||||
|
||||
```toml
|
||||
[postgres]
|
||||
min_version = "16" # or [mysql] min_version = "11.4" (MariaDB's numbering)
|
||||
```
|
||||
|
||||
Use what the app's docs or code require, not just today's version.
|
||||
|
||||
| What | Today | For the app |
|
||||
|---|---|---|
|
||||
@@ -199,6 +209,7 @@ The database is `utf8mb4`; the app has all privileges on it and nothing
|
||||
else. The rest is as for `postgres` (migrations, retrying at boot; a URL
|
||||
is `mysql://$DB_USER:$DB_PASSWORD@$DB_HOST:$DB_PORT/$DB_NAME`).
|
||||
`coreapp new --mysql` adds the need (there's no example app for it).
|
||||
`[mysql] min_version` works as for postgres; there are no extensions.
|
||||
|
||||
### `sso`: sign-in with Core accounts
|
||||
|
||||
@@ -268,7 +279,8 @@ works. Ask the user to confirm delivery to a real address.
|
||||
|
||||
A newer database server than the Core's (an app that needs PostgreSQL 18:
|
||||
if the app also supports SQLite, that in `/data` is a fine choice, and say
|
||||
so in your report), the Core's AI features (offering
|
||||
so in your report; otherwise set `min_version`, which refuses on this
|
||||
Core, and report it), the Core's AI features (offering
|
||||
tools to its AI agent, or using its model), extra services such as Redis or
|
||||
a second container, extra hostnames, and public ports other than HTTPS.
|
||||
If the app can't work without one of these, say so plainly in your report
|
||||
|
||||
Reference in New Issue
Block a user