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:
2026-12-03 20:31:23 -07:00
co-authored by Claude Opus 5.5
parent cf18bef278
commit c60d99baba
7 changed files with 102 additions and 30 deletions
+9
View File
@@ -233,6 +233,15 @@ The Core's own scripts trace secrets, so their output goes to
the table and its index. `[postgres]` without `"postgres"` in needs, an
unknown setting or a bad name is refused; so is `needs` with both
postgres and mysql.
5d. `min_version`: on the Core's PostgreSQL 17.6, a new app with
`[postgres]` `min_version = "18"` is refused before anything is built
("Vectest needs PostgreSQL 18 or newer ...; this Core has 17.6");
`"17"` installs; raising it to `"18"` in an update is refused and the
app keeps running. A `--mysql` app with `[mysql]` `min_version = "13"`
is refused ("needs MariaDB 13 or newer ...; this Core has 12.1.2").
Comparison is numeric (`"17.10"` is newer than 17.6); `min_version =
17.4` (a TOML number with a dot) and `">=18"` are refused with a hint;
`[mysql]` has no `extensions`.
6. `coreapp status` (address and port), `coreapp logs`, `coreapp shell`
(exit with `exit`), `coreapp shell 'id; echo $APP_URL'` (prints both,
no terminal needed, also when piped), `coreapp list` (all apps installed