mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-01 03:46:24 +00:00

* feat: added exporter app config * refactor: added entityprofile resource & added backward compatibility to existing API * feat: added tests to get_profile_data_by_type * feat: remove non supported event types * chore: added migrations to 1.9.7 * chore: added application creation readme * chore: move migrations to 1.9.8 * fix: failing java test * style: ran java linting
11 lines
523 B
SQL
11 lines
523 B
SQL
-- Modify the path to the auto-generated operation column to extract from the JSON field
|
|
-- 1. Drop the unique constraint first
|
|
ALTER TABLE profiler_data_time_series
|
|
DROP CONSTRAINT IF EXISTS profiler_data_time_series_unique_hash_extension_ts;
|
|
-- 2. Drop the generated column
|
|
ALTER TABLE profiler_data_time_series
|
|
DROP COLUMN operation;
|
|
-- 3. Add the column back with new expression
|
|
ALTER TABLE profiler_data_time_series
|
|
ADD COLUMN operation VARCHAR(256) GENERATED ALWAYS AS (json -> 'profileData' ->> 'operation') STORED;
|