TP-48512 | Foreign key constraint fix (#312)

* TP-38709 | Merging the changes to master on the logfix

* TP-48512 | Added button element for RCA section and implemented fill rca details

* TP-48512 | Small fixes

* TP-48512 | adding unit tests

* TP-48512 | added unit tests

* TP-48512 | updated color code for rca card

* TP-48512	| Removed duplicate interface

* TP-48512	| Added one more unit test

* TP-48512 | added comments for jira link validation and update

* TP-48512 | Merging the changes to master on the logfix

# Conflicts:
#	cmd/app/handler/slack_handler.go

* TP-48512 | Added button element for RCA section and implemented fill rca details

# Conflicts:
#	common/util/common_util.go
#	common/util/constant.go
#	internal/processor/action/incident_resolve_action.go
#	internal/processor/action/incident_update_jira-links_action.go
#	internal/processor/action/incident_update_resolution_text_action.go
#	internal/processor/action/view/incident_resolution_text.go
#	internal/processor/action/view/incident_section.go
#	service/slack/slack_service.go

* TP-48512 | Small fixes

* TP-48512 | adding unit tests

* TP-48512 | added unit tests

# Conflicts:
#	Makefile
#	service/incident/incident_service_v2_interface.go

* TP-48512 | updated color code for rca card

* TP-48512	| Removed duplicate interface

* TP-48512	| Added one more unit test

* TP-48512 | added comments for jira link validation and update

* TP-48512 | Fixed merge conflicts

* TP-48512 | Fixed merge conflicts

* TP-48512 | Fixed merge conflicts

* TP-48512 | Added sql migration script for adding tags

* TP-48512 | Updated sql migration script for adding tags

* TP-48512 | Fixed merge conflicts and updated tags in sql migration script

* TP-48512 | Fixed migration duplicate

* TP-48512 | Fixed migration fkey constraints
This commit is contained in:
Ajay Devarakonda
2023-12-07 18:39:58 +05:30
committed by GitHub
parent 57466e18ca
commit e1c773df3e
2 changed files with 10 additions and 10 deletions

View File

@@ -0,0 +1,9 @@
alter table tag add column if not exists optional boolean not null default false;
alter table tag add column if not exists active boolean not null default false;
alter table tag add column if not exists display_order smallint NOT NULL DEFAULT 0;
alter table tag_value add column if not exists active boolean not null default false;
insert into tag ("name","label","place_holder","action_id","type","created_at","updated_at","deleted_at","active","optional","display_order")
values
('contributing-factors','Contributing factors','select contributing factors','contributing_factors_action_id','single_value','2023-12-01 07:10:20.550404','2023-12-01 07:10:20.550404',NULL,TRUE,FALSE,2),
('business_affected','Business affected','select business affected','business_affected_action_id','multi_value','2023-12-01 07:10:20.550404','2023-12-01 07:10:20.550404',NULL,TRUE,FALSE,1),
('additional_tags','Additional tags','select additional tags','additional_tags_action_id','multi_value','2023-12-01 07:10:20.550404','2023-12-01 07:10:20.550404',NULL,TRUE,TRUE,3);

View File

@@ -1,12 +1,3 @@
alter table tag add column if not exists optional boolean not null default false;
alter table tag add column if not exists active boolean not null default false;
alter table tag add column if not exists display_order smallint NOT NULL DEFAULT 0;
alter table tag_value add column if not exists active boolean not null default false;
insert into tag ("name","label","place_holder","action_id","type","created_at","updated_at","deleted_at","active","optional","display_order")
values
('contributing-factors','Contributing factors','select contributing factors','contributing_factors_action_id','single_value','2023-12-01 07:10:20.550404','2023-12-01 07:10:20.550404',NULL,TRUE,FALSE,2),
('business_affected','Business affected','select business affected','business_affected_action_id','multi_value','2023-12-01 07:10:20.550404','2023-12-01 07:10:20.550404',NULL,TRUE,FALSE,1),
('additional_tags','Additional tags','select additional tags','additional_tags_action_id','multi_value','2023-12-01 07:10:20.550404','2023-12-01 07:10:20.550404',NULL,TRUE,TRUE,3);
insert into tag_value ("tag_id","value","create_at","updated_at","deleted_at","active")
values
(22,'Internal','2023-12-01 07:10:20.550404','2023-12-01 07:10:20.550404',NULL,TRUE),
@@ -63,4 +54,4 @@ values
(24,'GI_DocumentGeneration','2023-12-01 07:10:20.550404','2023-12-01 07:10:20.550404',NULL,TRUE),
(24,'GI_Claim','2023-12-01 07:10:20.550404','2023-12-01 07:10:20.550404',NULL,TRUE),
(24,'GI_IOS','2023-12-01 07:10:20.550404','2023-12-01 07:10:20.550404',NULL,TRUE),
(24,'GI_exceptions','2023-12-01 07:10:20.550404','2023-12-01 07:10:20.550404',NULL,TRUE);
(24,'GI_exceptions','2023-12-01 07:10:20.550404','2023-12-01 07:10:20.550404',NULL,TRUE);