Skip to content
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
2 changes: 2 additions & 0 deletions scripts/sql/29302000_deployment_event.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DROP TABLE IF EXISTS "public"."deployment_event";
DROP SEQUENCE IF EXISTS "public"."id_seq_deployment_event";
20 changes: 20 additions & 0 deletions scripts/sql/29302000_deployment_event.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
CREATE SEQUENCE IF NOT EXISTS id_seq_deployment_event;
CREATE TABLE IF NOT EXISTS public.deployment_event
(
"id" int NOT NULL DEFAULT nextval('id_seq_deployment_event'::regclass),
"app_id" int,
"env_id" int,
"pipeline_id" int,
"cd_workflow_runner_id" int,
"event_json" text NOT NULL,
"metadata" text NOT NULL,
"created_on" timestamptz NOT NULL,
"created_by" int4 NOT NULL,
"updated_on" timestamptz NOT NULL,
"updated_by" int4 NOT NULL,
PRIMARY KEY ("id")
);


Alter table devtron_resource_task_run alter column run_source_dependency_identifier drop not null;
Alter table devtron_resource_task_run alter column task_type_identifier drop not null;