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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
c8dc8c38
Commit
c8dc8c38
authored
Nov 15, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing cluster_id on knative
parent
eaf7fd1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
db/migrate/20181030154446_add_missing_indexes_for_foreign_keys.rb
...te/20181030154446_add_missing_indexes_for_foreign_keys.rb
+2
-0
db/schema.rb
db/schema.rb
+1
-0
No files found.
db/migrate/20181030154446_add_missing_indexes_for_foreign_keys.rb
View file @
c8dc8c38
...
...
@@ -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
)
...
...
db/schema.rb
View file @
c8dc8c38
...
...
@@ -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
|
...
...
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