Skip to content
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

feat: chart ref schema db migration #5319

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/sql/256_custom_deployment_schema.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

DROP TABLE IF EXISTS public.chart_ref_schema;

DELETE FROM devtron_resource_searchable_key WHERE name = 'CHART_REF_ID';
19 changes: 19 additions & 0 deletions scripts/sql/256_custom_deployment_schema.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@


CREATE TABLE IF NOT EXISTS public.chart_ref_schema
(
id SERIAL PRIMARY KEY,
"name" varchar(250) NOT NULL,
"type" int NOT NULL,
"schema" text,
"created_on" timestamptz,
"created_by" int4,
"updated_on" timestamptz,
"updated_by" int4,
"active" bool
);

ALTER TABLE public.chart_ref_schema OWNER TO postgres;

INSERT INTO devtron_resource_searchable_key(name, is_removed, created_on, created_by, updated_on, updated_by)
VALUES ('CHART_REF_ID', false, now(), 1, now(), 1);
Loading