Commit d23f2895 authored by Vitali Tatarintev's avatar Vitali Tatarintev Committed by Mayra Cabrera

Add auto_close_incident column to incident_management_settings

parent 6c17a007
---
title: Adds auto_close_incident column to project_incident_management_settings
merge_request: 39980
author:
type: added
# frozen_string_literal: true
class AddAutoCloseIncidentToProjectIncidentManagementSettings < ActiveRecord::Migration[6.0]
DOWNTIME = false
def up
add_column :project_incident_management_settings, :auto_close_incident, :boolean, default: true, null: false
end
def down
remove_column :project_incident_management_settings, :auto_close_incident
end
end
751a2c8e06b522b1564ea09f961d8883543a631874ae26bb14c98b7b442d59cc
\ No newline at end of file
......@@ -14403,6 +14403,7 @@ CREATE TABLE public.project_incident_management_settings (
pagerduty_active boolean DEFAULT false NOT NULL,
encrypted_pagerduty_token bytea,
encrypted_pagerduty_token_iv bytea,
auto_close_incident boolean DEFAULT true NOT NULL,
CONSTRAINT pagerduty_token_iv_length_constraint CHECK ((octet_length(encrypted_pagerduty_token_iv) <= 12)),
CONSTRAINT pagerduty_token_length_constraint CHECK ((octet_length(encrypted_pagerduty_token) <= 255))
);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment