Skip to content

Commit

Permalink
refactor: remove Snyk tables from frequency table
Browse files Browse the repository at this point in the history
  • Loading branch information
tjsilver committed Feb 19, 2025
1 parent 12cc724 commit 0914bd3
Showing 1 changed file with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
-- DropTable
DROP TABLE IF EXISTS "snyk_issues";
BEGIN;

-- DropTable
DROP TABLE IF EXISTS "snyk_projects";
-- Remove the frequency data for deprecated Snyk tables else alarms will trip
DELETE FROM cloudquery_table_frequency
WHERE table_name IN (
'snyk_issues'
, 'snyk_projects'
, 'snyk_sbom'
, 'snyk_organizations'
);

-- DropTable
DROP TABLE IF EXISTS "snyk_sbom";
-- Remove deprecated Snyk tables
DROP TABLE IF EXISTS 'snyk_issues';
DROP TABLE IF EXISTS 'snyk_projects';
DROP TABLE IF EXISTS 'snyk_sbom';
DROP TABLE IF EXISTS 'snyk_organizations';

-- DropTable
DROP TABLE IF EXISTS "snyk_organizations";

COMMIT;

0 comments on commit 0914bd3

Please sign in to comment.