-
Notifications
You must be signed in to change notification settings - Fork 514
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63110a5
commit 7e05949
Showing
9 changed files
with
46 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- Begin Transaction | ||
BEGIN; | ||
--------------------------------------- | ||
ALTER TABLE public.plugin_parent_metadata DROP COLUMN is_exposed; | ||
ALTER TABLE public.plugin_metadata DROP COLUMN is_exposed ; | ||
ALTER TABLE public.scan_tool_metadata DROP COLUMN is_preset ; | ||
ALTER TABLE public.scan_tool_metadata DROP COLUMN plugin_id; | ||
ALTER TABLE public.scan_tool_metadata DROP CONSTRAINT IF EXISTS scan_tool_metadata_name_version_unique; | ||
ALTER TABLE public.scan_tool_metadata ADD COLUMN url; | ||
|
||
-- --------------------------------------------------- | ||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
-- Begin Transaction | ||
BEGIN; | ||
-- Adding Exposed on plugin metadata and plugin parent metadata | ||
ALTER TABLE public.plugin_parent_metadata ADD COLUMN is_exposed bool NOT NULL DEFAULT true; | ||
ALTER TABLE public.plugin_metadata ADD COLUMN is_exposed bool NOT NULL DEFAULT true; | ||
|
||
-- Preset flag is added to scan_tool_metadata to define tool added by user or devtron system | ||
ALTER TABLE public.scan_tool_metadata ADD COLUMN is_preset bool NOT NULL DEFAULT true; | ||
-- Plugin Id is added to scan_tool_metadata as foreign key | ||
ALTER TABLE public.scan_tool_metadata ADD COLUMN plugin_id int; | ||
ALTER TABLE "public"."scan_tool_metadata" ADD FOREIGN KEY ("plugin_id") REFERENCES "public"."plugin_metadata" ("id"); | ||
ALTER TABLE public.scan_tool_metadata ADD CONSTRAINT scan_tool_metadata_name_version_unique UNIQUE ("name", "version"); | ||
|
||
ALTER TABLE public.scan_tool_metadata ADD COLUMN url varchar(100); | ||
|
||
UPDATE public.scan_tool_metadata SET url='https://cdn.devtron.ai/images/ic-clair.webp' WHERE name='CLAIR'; | ||
UPDATE public.scan_tool_metadata SET url='https://cdn.devtron.ai/images/ic-trivy.webp' WHERE name='TRIVY'; | ||
|
||
-- --------------------------------------------------- | ||
-- Commit Transaction | ||
-- --------------------------------------------------- | ||
COMMIT; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.