Skip to content

Commit

Permalink
RHINENG-13371: remove old package_data from advisory_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy committed Sep 30, 2024
1 parent f73af17 commit 6bbd0eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
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;
2 changes: 1 addition & 1 deletion database_admin/schema/create_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS schema_migrations


INSERT INTO schema_migrations
VALUES (130, false);
VALUES (131, false);

-- ---------------------------------------------------------------------------
-- Functions
Expand Down

0 comments on commit 6bbd0eb

Please sign in to comment.