Let an app ask for PostgreSQL extensions its user can't make
coreapp.toml's [postgres] extensions = ["vector"]: the installer checks the Core's PostgreSQL has each one (refusing before anything changes if not) and makes them in the app's database as the superuser, with CASCADE, on install and every update. Ones taken off the list are kept, since the data may use them. Also fixes the check refusing needs with both postgres and mysql, which never ran. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -489,8 +489,14 @@ Steps:
|
||||
in one command
|
||||
- [ ] David: Miniflux runs without an admin until the Core's
|
||||
groups work (then map `admins`)
|
||||
- [ ] `[postgres] extensions = ["vector"]`: the installer enables
|
||||
extensions an app can't (when an app needs one)
|
||||
- Done 2026-12-03: `[postgres] extensions = ["vector"]` in
|
||||
coreapp.toml: the installer checks the Core has each one and
|
||||
makes it in the app's database as the superuser (`CASCADE`, so
|
||||
dependencies come too), on install and every update; ones taken
|
||||
off the list are kept. Tested on dev.fedcom.net with vector,
|
||||
pg_trgm and earthdistance, a refused postgis, and a rollback that
|
||||
kept them. Also fixed: `needs` with both postgres and mysql was
|
||||
meant to be refused, but the check never ran
|
||||
- [ ] PostgreSQL 18 on the Core (Federated's), or a minimum version
|
||||
in coreapp.toml that the installer checks, so an app refuses to
|
||||
install on an older Core instead of failing later
|
||||
|
||||
Reference in New Issue
Block a user