Commit 594f2c81 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'ak/migration-cleanu' into 'master'

Drop kibana_hostname column

See merge request gitlab-org/gitlab!23503
parents 0ac15812 2c8ad6f8
...@@ -16,7 +16,7 @@ module Clusters ...@@ -16,7 +16,7 @@ module Clusters
include ::Gitlab::Utils::StrongMemoize include ::Gitlab::Utils::StrongMemoize
include IgnorableColumns include IgnorableColumns
ignore_column :kibana_hostname, remove_with: '12.8', remove_after: '2020-01-22' ignore_column :kibana_hostname, remove_with: '12.9', remove_after: '2020-02-22'
default_value_for :version, VERSION default_value_for :version, VERSION
......
---
title: Remove kibana_hostname column from clusters_applications_elastic_stacks table
merge_request: 23503
author:
type: changed
# frozen_string_literal: true
class DropKibanaColumn < ActiveRecord::Migration[5.2]
DOWNTIME = false
def change
remove_column :clusters_applications_elastic_stacks, :kibana_hostname, :string, limit: 255
end
end
...@@ -1150,7 +1150,6 @@ ActiveRecord::Schema.define(version: 2020_01_27_090233) do ...@@ -1150,7 +1150,6 @@ ActiveRecord::Schema.define(version: 2020_01_27_090233) do
t.bigint "cluster_id", null: false t.bigint "cluster_id", null: false
t.integer "status", null: false t.integer "status", null: false
t.string "version", limit: 255, null: false t.string "version", limit: 255, null: false
t.string "kibana_hostname", limit: 255
t.text "status_reason" t.text "status_reason"
t.index ["cluster_id"], name: "index_clusters_applications_elastic_stacks_on_cluster_id", unique: true t.index ["cluster_id"], name: "index_clusters_applications_elastic_stacks_on_cluster_id", unique: true
end end
......
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