Commit c8dc8c38 authored by Kamil Trzciński's avatar Kamil Trzciński

Add missing cluster_id on knative

parent eaf7fd1b
......@@ -16,6 +16,7 @@ class AddMissingIndexesForForeignKeys < ActiveRecord::Migration
add_concurrent_index(:clusters_applications_ingress, :cluster_id, unique: true)
add_concurrent_index(:clusters_applications_jupyter, :cluster_id, unique: true)
add_concurrent_index(:clusters_applications_jupyter, :oauth_application_id)
add_concurrent_index(:clusters_applications_knative, :cluster_id, unique: true)
add_concurrent_index(:clusters_applications_prometheus, :cluster_id, unique: true)
add_concurrent_index(:fork_network_members, :forked_from_project_id)
add_concurrent_index(:internal_ids, :namespace_id)
......@@ -45,6 +46,7 @@ class AddMissingIndexesForForeignKeys < ActiveRecord::Migration
remove_concurrent_index(:clusters_applications_ingress, :cluster_id, unique: true)
remove_concurrent_index(:clusters_applications_jupyter, :cluster_id, unique: true)
remove_concurrent_index(:clusters_applications_jupyter, :oauth_application_id)
remove_concurrent_index(:clusters_applications_knative, :cluster_id, unique: true)
remove_concurrent_index(:clusters_applications_prometheus, :cluster_id, unique: true)
remove_concurrent_index(:fork_network_members, :forked_from_project_id)
remove_concurrent_index(:internal_ids, :namespace_id)
......
......@@ -687,6 +687,7 @@ ActiveRecord::Schema.define(version: 20181107054254) do
t.string "version", null: false
t.string "hostname"
t.text "status_reason"
t.index ["cluster_id"], name: "index_clusters_applications_knative_on_cluster_id", unique: true, using: :btree
end
create_table "clusters_applications_prometheus", force: :cascade do |t|
......
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