From feed3350f80c941a4c049401849fb31e71852c5b Mon Sep 17 00:00:00 2001 From: Patrik Segedy Date: Tue, 1 Oct 2024 13:21:43 +0200 Subject: [PATCH] RHINENG-13371: set package_data=null for old errata --- .../migrations/131_remove_advisory_old_package_data.up.sql | 1 - 1 file changed, 1 deletion(-) diff --git a/database_admin/migrations/131_remove_advisory_old_package_data.up.sql b/database_admin/migrations/131_remove_advisory_old_package_data.up.sql index a8f8840d9..aecdbdc2c 100644 --- a/database_admin/migrations/131_remove_advisory_old_package_data.up.sql +++ b/database_admin/migrations/131_remove_advisory_old_package_data.up.sql @@ -1,2 +1 @@ -delete from advisory_metadata am where package_data is not json array and not exists (select 1 from advisory_account_data aad where aad.advisory_id = am.id); update advisory_metadata set package_data = null where package_data is not json array;