OpenMetadata/bootstrap/sql/migrations/native/1.11.5/mysql/schemaChanges.sql
Eugenio c66d9eebf6
Tagging explanation (#24817)
* Added `appliedAt` field to `TagLabel`s

This is to track insertions to `tag_usage` with timestamps

* Capture and format recognition explanations in `TagAnalyzer`

This creates a function to build an explanation to why something was scored as it was.

# Conflicts:
#	ingestion/src/metadata/pii/algorithms/presidio_utils.py

* Refactor `TagProcessor`

* Capture results for the old-style `PIIProcessor`

* Move strings to constants

* Add `TagLabel.appliedBy` field

This change also patches the user's name into the tags declared in `JsonPatch` objects to fill it up

* Update typescript types

* Fix python tests

* Fix java tests

* Simplify setting tag's `appliedBy` using `EntityUpdater.updatingUser`

* Remove unnecessary f-string

* Moar fixes

* Move migrations to 1.11.5
2026-01-08 17:02:40 +01:00

7 lines
428 B
SQL

-- DO NOT RENAME OR DELETE THIS FILE
-- Migrations are applied from Java code based on the version in the file name inside folder openmetadata-service/src/main/java/org/openmetadata/service/migration/mysql/v1114
-- Include `tag_usage.appliedAt` and `tag_usage.appliedBy` fields
ALTER TABLE tag_usage ADD appliedAt TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP;
ALTER TABLE tag_usage ADD appliedBy VARCHAR(64) NULL DEFAULT 'admin';