-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RHINENG-13371: remove old package_data from advisory_metadata #1493
Conversation
Referenced Jiras: |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1493 +/- ##
=======================================
Coverage 65.03% 65.03%
=======================================
Files 114 114
Lines 7880 7880
=======================================
Hits 5125 5125
Misses 2216 2216
Partials 539 539
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -0,0 +1,2 @@ | |||
delete from advisory_metadata am where package_data is json array = 'f' and not exists (select 1 from advisory_account_data aad where aad.advisory_id = am.id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete from advisory_metadata am where package_data is json array = 'f' and not exists (select 1 from advisory_account_data aad where aad.advisory_id = am.id); | |
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); |
@@ -0,0 +1,2 @@ | |||
delete from advisory_metadata am where package_data is json array = 'f' 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 json array = 'f'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update advisory_metadata set package_data = null where package_data is json array = 'f'; | |
update advisory_metadata set package_data = null where package_data is not json array; |
59eb89c
to
82ab3c9
Compare
Secure Coding Practices Checklist GitHub Link
Secure Coding Checklist