Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorChris Baumbauer <cab@cabnetworks.net>2018-11-26 23:02:33 +0300
committerChris Baumbauer <cab@cabnetworks.net>2018-11-26 23:46:00 +0300
commit2937be7b0c46ae97aa89572a9a349ed636198696 (patch)
tree49757cdd159b2385600d9a08ede07caf07a31313 /db
parent95ebdf3053ef9aeba657ff9bf1a5a66b608cc6dc (diff)
Expose external_ip to knative cluster application
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20181116050532_knative_external_ip.rb14
-rw-r--r--db/schema.rb1
2 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20181116050532_knative_external_ip.rb b/db/migrate/20181116050532_knative_external_ip.rb
new file mode 100644
index 00000000000..f1f903fb692
--- /dev/null
+++ b/db/migrate/20181116050532_knative_external_ip.rb
@@ -0,0 +1,14 @@
+# frozen_string_literal: true
+
+# See http://doc.gitlab.com/ce/development/migration_style_guide.html
+# for more information on how to write migrations for GitLab.
+
+class KnativeExternalIp < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ def change
+ add_column :clusters_applications_knative, :external_ip, :string
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index acabd7b442b..b3ae6cc0f14 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -698,6 +698,7 @@ ActiveRecord::Schema.define(version: 20181126150622) do
t.string "version", null: false
t.string "hostname"
t.text "status_reason"
+ t.string "external_ip"
t.index ["cluster_id"], name: "index_clusters_applications_knative_on_cluster_id", unique: true, using: :btree
end