Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2c8ad6f8
Commit
2c8ad6f8
authored
Jan 27, 2020
by
Adrien Kohlbecker
Committed by
Mayra Cabrera
Jan 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop kibana_hostname column
parent
0ac15812
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
2 deletions
+15
-2
app/models/clusters/applications/elastic_stack.rb
app/models/clusters/applications/elastic_stack.rb
+1
-1
changelogs/unreleased/ak-migration-cleanu.yml
changelogs/unreleased/ak-migration-cleanu.yml
+5
-0
db/post_migrate/20200122144759_drop_kibana_column.rb
db/post_migrate/20200122144759_drop_kibana_column.rb
+9
-0
db/schema.rb
db/schema.rb
+0
-1
No files found.
app/models/clusters/applications/elastic_stack.rb
View file @
2c8ad6f8
...
...
@@ -16,7 +16,7 @@ module Clusters
include
::
Gitlab
::
Utils
::
StrongMemoize
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
...
...
changelogs/unreleased/ak-migration-cleanu.yml
0 → 100644
View file @
2c8ad6f8
---
title
:
Remove kibana_hostname column from clusters_applications_elastic_stacks table
merge_request
:
23503
author
:
type
:
changed
db/post_migrate/20200122144759_drop_kibana_column.rb
0 → 100644
View file @
2c8ad6f8
# 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
db/schema.rb
View file @
2c8ad6f8
...
...
@@ -1150,7 +1150,6 @@ ActiveRecord::Schema.define(version: 2020_01_27_090233) do
t
.
bigint
"cluster_id"
,
null:
false
t
.
integer
"status"
,
null:
false
t
.
string
"version"
,
limit:
255
,
null:
false
t
.
string
"kibana_hostname"
,
limit:
255
t
.
text
"status_reason"
t
.
index
[
"cluster_id"
],
name:
"index_clusters_applications_elastic_stacks_on_cluster_id"
,
unique:
true
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment