OpenMetadata/bootstrap/sql/migrations/native/1.9.10/postgres/postDataMigrationSQLScript.sql
Keshav Mohta 1d90f24847
Revert "Fixes #23356: Databricks OAuth & Azure AD Auth (#23482)"
This reverts commit e3882656a938b4b0e0d25c953a2eabc530de0072.
2025-09-23 20:34:52 +05:30

7 lines
486 B
SQL

-- If you upgraded to 1.9.8 with the initial migration and then upgraded to 1.9.9
-- `'profileData', pdts.json` `pdts.json` will have the profileData in the json field
-- you will hence have performed the same migration again. This brings the json
-- `profileData`field back to the original state.
UPDATE profiler_data_time_series
SET json = jsonb_set(json::jsonb, '{profileData}', json::jsonb->'profileData'->'profileData')::json
WHERE json->'profileData'->>'profileData' IS NOT NULL;