Add manage_updates permission schema migration

- Bump permission schema to version 4
- Add upgradeSchemaToVersion4 for manage_updates permission
  - Grants manage_updates to users who have both show_updates and server_infos
- Fix ZIP_RELEASE installation type: set supportsAutoUpdate to false
  (ZIP update not yet implemented)
- Improve update instructions for ZIP installations
This commit is contained in:
Sebastian Almberg 2026-01-30 21:46:27 +01:00
parent 42fe781ef8
commit 87352ca6f7
3 changed files with 21 additions and 3 deletions

View file

@ -51,7 +51,8 @@ enum InstallationType: string
return match($this) {
self::GIT => true,
self::DOCKER => false,
self::ZIP_RELEASE => true,
// ZIP_RELEASE auto-update not yet implemented
self::ZIP_RELEASE => false,
self::UNKNOWN => false,
};
}
@ -61,7 +62,7 @@ enum InstallationType: string
return match($this) {
self::GIT => 'Run: php bin/console partdb:update',
self::DOCKER => 'Pull the new Docker image and recreate the container: docker-compose pull && docker-compose up -d',
self::ZIP_RELEASE => 'Download the new release, extract it, and run migrations.',
self::ZIP_RELEASE => 'Download the new release ZIP from GitHub, extract it over your installation, and run: php bin/console doctrine:migrations:migrate && php bin/console cache:clear',
self::UNKNOWN => 'Unable to determine installation type. Please update manually.',
};
}