2025-08-29 17:28:29 +02:00
|
|
|
-- Add "Data Product Domain Validation" rule to existing entityRulesSettings configuration
|
|
|
|
UPDATE openmetadata_settings
|
|
|
|
SET json = JSON_ARRAY_APPEND(
|
|
|
|
json,
|
|
|
|
'$.entitySemantics',
|
|
|
|
JSON_OBJECT(
|
|
|
|
'name', 'Data Product Domain Validation',
|
|
|
|
'description', 'Validates that Data Products assigned to an entity match the entity''s domains.',
|
|
|
|
'rule', '{"validateDataProductDomainMatch":[{"var":"dataProducts"},{"var":"domains"}]}',
|
|
|
|
'enabled', true,
|
|
|
|
'provider', 'system'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
WHERE configType = 'entityRulesSettings'
|
|
|
|
AND JSON_EXTRACT(json, '$.entitySemantics') IS NOT NULL
|
|
|
|
AND NOT JSON_CONTAINS(
|
|
|
|
JSON_EXTRACT(json, '$.entitySemantics[*].name'),
|
|
|
|
JSON_QUOTE('Data Product Domain Validation')
|
2025-09-02 16:41:43 +05:30
|
|
|
);
|
2025-09-11 15:14:38 +05:30
|
|
|
|
|
|
|
-- Add virtual column for customUnitOfMeasurement
|
|
|
|
ALTER TABLE metric_entity
|
|
|
|
ADD COLUMN customUnitOfMeasurement VARCHAR(256)
|
|
|
|
GENERATED ALWAYS AS (json_unquote(json_extract(json, '$.customUnitOfMeasurement'))) VIRTUAL;
|
|
|
|
-- Add index on the virtual column
|
2025-09-11 22:30:39 +05:30
|
|
|
CREATE INDEX idx_metric_custom_unit ON metric_entity(customUnitOfMeasurement);
|
2025-08-21 15:07:57 +05:30
|
|
|
-- Increase Flowable ACTIVITY_ID_ column size to support longer user-defined workflow node names
|
2025-09-07 19:41:22 +05:30
|
|
|
ALTER TABLE ACT_RU_EVENT_SUBSCR MODIFY ACTIVITY_ID_ varchar(255);
|
|
|
|
|
|
|
|
-- Update workflow settings with new job acquisition interval settings
|
|
|
|
UPDATE openmetadata_settings
|
|
|
|
SET json = JSON_SET(
|
|
|
|
json,
|
|
|
|
'$.executorConfiguration.asyncJobAcquisitionInterval', 60000,
|
|
|
|
'$.executorConfiguration.timerJobAcquisitionInterval', 60000
|
|
|
|
)
|
|
|
|
WHERE configType = 'workflowSettings'
|
|
|
|
AND JSON_EXTRACT(json, '$.executorConfiguration') IS NOT NULL;
|