Commit 15eb47a1 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'add-auto_close_incident-column-to-incident_management_settings' into 'master'

Add auto_close_incident column to incident_management_settings

See merge request gitlab-org/gitlab!39980
parents c2540826 d23f2895
---
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
......@@ -14408,6 +14408,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