Skip to content

Commit 2af67f1

Browse files
chart ref schema db migration (#5319)
1 parent 006a582 commit 2af67f1

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
DROP TABLE IF EXISTS public.chart_ref_schema;
3+
4+
DELETE FROM devtron_resource_searchable_key WHERE name = 'CHART_REF_ID';
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
3+
CREATE TABLE IF NOT EXISTS public.chart_ref_schema
4+
(
5+
id SERIAL PRIMARY KEY,
6+
"name" varchar(250) NOT NULL,
7+
"type" int NOT NULL,
8+
"schema" text,
9+
"created_on" timestamptz,
10+
"created_by" int4,
11+
"updated_on" timestamptz,
12+
"updated_by" int4,
13+
"active" bool
14+
);
15+
16+
ALTER TABLE public.chart_ref_schema OWNER TO postgres;
17+
18+
INSERT INTO devtron_resource_searchable_key(name, is_removed, created_on, created_by, updated_on, updated_by)
19+
VALUES ('CHART_REF_ID', false, now(), 1, now(), 1);

0 commit comments

Comments
 (0)