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;