Repository navigation
Conversation
The core system tag manager and object mapper rely on the etag and color columns and on systemtag.id no longer being auto-incremented, but these changes were only done by migrations of the optional systemtags app. Instances where that app was disabled during an upgrade miss them, which breaks the core tag API used by dav, workflowengine and other apps with "Unknown column 'etag'". On Oracle the leftover auto-increment trigger would even loop up to the inserted snowflake id. The columns migration is kept backportable; the app's own 31000 migrations already skip existing columns, and its unreleased 36000 migration is superseded by the core one. Fixes #67514 Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Doctrine's Oracle schema manager never reports auto-increment when reading a table, so skipping the drop based on the column state left the trigger and sequence in place on Oracle. That is the case the migration has to handle, so call dropAutoincrementColumn unconditionally like the other snowflake migrations. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
susnux
marked this pull request as ready for review
December 3, 2026 12:26
susnux
requested review from
cristianscheid,
leftybournes and
salmart-dev
and removed request for
a team
December 3, 2026 12:26
CarlSchwan
approved these changes
Dec 3, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The core system tag API (
ISystemTagManager,ISystemTagObjectMapper) depends on theetagandcolorcolumns ofoc_systemtag, and on master also onsystemtag.idno longer being auto-incremented (snowflake ids). Until now only migrations of the optional systemtags app made these changes. The updater only migrates enabled apps, so instances where systemtags was disabled during the upgrade to 31 miss the columns. Anything that uses the core API, such as the dav/systemtagsendpoints, workflowengine,occ tag:*, files_automatedtagging or recognize, then fails withUnknown column 'etag'(#58202, #58211).On master the same applies to the auto-increment removal. On Oracle the leftover DBAL auto-increment trigger loops
NEXTVALup to the inserted snowflake id, so creating a tag would effectively hang.This moves the schema changes into core:
Version31000Date20261203120000addsetagandcolorif they are missing. It is named so the same class can be backported to stable31–35.Version36000Date20261203120100drops the auto-increment onsystemtag.id, replacing the unreleased systemtags 36000 migration. It runs unconditionally because Doctrine does not report auto-increment for Oracle columns. On dev instances that already ran the app migration, Oracle only logs that the trigger is gone.Making the manager a no-op while the app is disabled was considered and rejected. The API is public and used by always-enabled apps, and tag-based access control rules would silently stop matching.
TODO
Version31000Date20261203120000(without the 36000 migration) to stable31–35Checklist
3. to review, feature component)stable32)AI (if applicable)