mirror of
https://github.com/open-metadata/OpenMetadata
synced 2026-05-24 09:39:11 +00:00
* 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
14 lines
552 B
SQL
14 lines
552 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/postgres/v1114
|
|
|
|
-- Include `tag_usage.appliedAt` field
|
|
-- Add nullable column and then include default to avoid backfill
|
|
ALTER TABLE tag_usage
|
|
ADD COLUMN appliedAt TIMESTAMP;
|
|
|
|
ALTER TABLE tag_usage
|
|
ALTER COLUMN appliedAt SET DEFAULT NOW();
|
|
|
|
-- Include `tag_usage.appliedBy` field
|
|
ALTER TABLE tag_usage
|
|
ADD COLUMN appliedBy VARCHAR(64) DEFAULT 'admin';
|