diff --git a/bootstrap/sql/migrations/native/1.3.0/mysql/postDataMigrationSQLScript.sql b/bootstrap/sql/migrations/native/1.3.0/mysql/postDataMigrationSQLScript.sql new file mode 100644 index 00000000000..e66612d8f5f --- /dev/null +++ b/bootstrap/sql/migrations/native/1.3.0/mysql/postDataMigrationSQLScript.sql @@ -0,0 +1,8 @@ +-- Rename customMetricsProfile to customMetrics +UPDATE profiler_data_time_series +SET json = REPLACE(json, '"customMetricsProfile"', '"customMetrics"'); + +-- Delete customMetricsProfile from entity_extension +-- This was not supported on the processing side before 1.3. +DELETE FROM openmetadata_db.entity_extension ee +where extension like '%customMetrics'; \ No newline at end of file diff --git a/bootstrap/sql/migrations/native/1.3.0/postgres/postDataMigrationSQLScript.sql b/bootstrap/sql/migrations/native/1.3.0/postgres/postDataMigrationSQLScript.sql new file mode 100644 index 00000000000..6d65e5f7705 --- /dev/null +++ b/bootstrap/sql/migrations/native/1.3.0/postgres/postDataMigrationSQLScript.sql @@ -0,0 +1,8 @@ +-- Rename customMetricsProfile to customMetrics +UPDATE profiler_data_time_series +SET json = REPLACE(json::text, '"customMetricsProfile"', '"customMetrics"')::jsonb; + +-- Delete customMetricsProfile from entity_extension +-- This was not supported on the processing side before 1.3. +DELETE FROM entity_extension ee +where extension like '%customMetrics'; \ No newline at end of file