summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2018-11-07 15:00:38 +0000
committerGrzegorz Bizon <grzegorz@gitlab.com>2018-11-07 15:00:38 +0000
commit5dc0577b84b9d41b1e2a6e781dfeaa400e8e2c10 (patch)
tree06954c98466840c21b88de8c929a36086d1310a2 /db
parentfadaa3d181b26c420a2424d35780cddc9fc32ce0 (diff)
parentc2097ed74cc832972142d24f3cda1faf7a96d550 (diff)
downloadgitlab-ce-5dc0577b84b9d41b1e2a6e781dfeaa400e8e2c10.tar.gz
Merge branch 'triggermesh-phase1-knative' into 'master'
Allow to install Knative as cluster application See merge request gitlab-org/gitlab-ce!22593
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180912111628_add_knative_application.rb20
-rw-r--r--db/schema.rb11
2 files changed, 31 insertions, 0 deletions
diff --git a/db/migrate/20180912111628_add_knative_application.rb b/db/migrate/20180912111628_add_knative_application.rb
new file mode 100644
index 00000000000..bfda6a945a7
--- /dev/null
+++ b/db/migrate/20180912111628_add_knative_application.rb
@@ -0,0 +1,20 @@
+# frozen_string_literal: true
+
+class AddKnativeApplication < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ def change
+ create_table "clusters_applications_knative" do |t|
+ t.references :cluster, null: false, unique: true, foreign_key: { on_delete: :cascade }
+
+ t.datetime_with_timezone "created_at", null: false
+ t.datetime_with_timezone "updated_at", null: false
+ t.integer "status", null: false
+ t.string "version", null: false
+ t.string "hostname"
+ t.text "status_reason"
+ end
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 2c8300839d8..56137caf1d7 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -705,6 +705,16 @@ ActiveRecord::Schema.define(version: 20181107054254) do
t.text "status_reason"
end
+ create_table "clusters_applications_knative", force: :cascade do |t|
+ t.integer "cluster_id", null: false
+ t.datetime_with_timezone "created_at", null: false
+ t.datetime_with_timezone "updated_at", null: false
+ t.integer "status", null: false
+ t.string "version", null: false
+ t.string "hostname"
+ t.text "status_reason"
+ end
+
create_table "clusters_applications_prometheus", force: :cascade do |t|
t.integer "cluster_id", null: false
t.integer "status", null: false
@@ -2422,6 +2432,7 @@ ActiveRecord::Schema.define(version: 20181107054254) do
add_foreign_key "clusters_applications_ingress", "clusters", name: "fk_753a7b41c1", on_delete: :cascade
add_foreign_key "clusters_applications_jupyter", "clusters", on_delete: :cascade
add_foreign_key "clusters_applications_jupyter", "oauth_applications", on_delete: :nullify
+ add_foreign_key "clusters_applications_knative", "clusters", on_delete: :cascade
add_foreign_key "clusters_applications_prometheus", "clusters", name: "fk_557e773639", on_delete: :cascade
add_foreign_key "clusters_applications_runners", "ci_runners", column: "runner_id", name: "fk_02de2ded36", on_delete: :nullify
add_foreign_key "clusters_applications_runners", "clusters", on_delete: :cascade