Commit ccd5993c authored by zmartins's avatar zmartins

Add WAF and Cilium Log column for Fluentd table

Fluentd cluster application table was previously
setting WAF path only
parent 84031c99
---
title: Add WAF and Cilium Log column for Fluentd table
merge_request: 29457
author:
type: changed
# frozen_string_literal: true
class AddWafAndCiliumLogsToApplicationsFluentd < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_column_with_default(:clusters_applications_fluentd,
:waf_log_enabled,
:boolean,
default: true,
allow_null: false)
add_column_with_default(:clusters_applications_fluentd,
:cilium_log_enabled,
:boolean,
default: true,
allow_null: false)
end
def down
remove_column(:clusters_applications_fluentd,
:waf_log_enabled)
remove_column(:clusters_applications_fluentd,
:cilium_log_enabled)
end
end
...@@ -1663,7 +1663,9 @@ CREATE TABLE public.clusters_applications_fluentd ( ...@@ -1663,7 +1663,9 @@ CREATE TABLE public.clusters_applications_fluentd (
updated_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL,
version character varying(255) NOT NULL, version character varying(255) NOT NULL,
host character varying(255) NOT NULL, host character varying(255) NOT NULL,
status_reason text status_reason text,
waf_log_enabled boolean DEFAULT true NOT NULL,
cilium_log_enabled boolean DEFAULT true NOT NULL
); );
CREATE SEQUENCE public.clusters_applications_fluentd_id_seq CREATE SEQUENCE public.clusters_applications_fluentd_id_seq
...@@ -13236,6 +13238,7 @@ COPY "schema_migrations" (version) FROM STDIN; ...@@ -13236,6 +13238,7 @@ COPY "schema_migrations" (version) FROM STDIN;
20200409211607 20200409211607
20200410232012 20200410232012
20200413072059 20200413072059
20200413230056
20200414144547 20200414144547
20200415160722 20200415160722
20200415161021 20200415161021
......
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