Skip to content

Commit 00918bb

Browse files
sql scripts (#5950)
1 parent fcfa897 commit 00918bb

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
DROP TABLE IF EXISTS "public"."deployment_event";
2+
DROP SEQUENCE IF EXISTS "public"."id_seq_deployment_event";
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
CREATE SEQUENCE IF NOT EXISTS id_seq_deployment_event;
2+
CREATE TABLE IF NOT EXISTS public.deployment_event
3+
(
4+
"id" int NOT NULL DEFAULT nextval('id_seq_deployment_event'::regclass),
5+
"app_id" int,
6+
"env_id" int,
7+
"pipeline_id" int,
8+
"cd_workflow_runner_id" int,
9+
"event_json" text NOT NULL,
10+
"metadata" text NOT NULL,
11+
"created_on" timestamptz NOT NULL,
12+
"created_by" int4 NOT NULL,
13+
"updated_on" timestamptz NOT NULL,
14+
"updated_by" int4 NOT NULL,
15+
PRIMARY KEY ("id")
16+
);
17+
18+
19+
Alter table devtron_resource_task_run alter column run_source_dependency_identifier drop not null;
20+
Alter table devtron_resource_task_run alter column task_type_identifier drop not null;

0 commit comments

Comments
 (0)