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
2d2a2dfa
Commit
2d2a2dfa
authored
Mar 10, 2020
by
Doug Stull
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix order of down
parent
a3124c92
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
db/migrate/20200306192548_add_index_on_project_id_and_type_to_services.rb
...306192548_add_index_on_project_id_and_type_to_services.rb
+2
-2
db/migrate/20200306193236_add_index_on_creator_id_and_created_at_to_projects.rb
...236_add_index_on_creator_id_and_created_at_to_projects.rb
+2
-2
db/schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20200306192548_add_index_on_project_id_and_type_to_services.rb
View file @
2d2a2dfa
...
@@ -15,8 +15,8 @@ class AddIndexOnProjectIdAndTypeToServices < ActiveRecord::Migration[6.0]
...
@@ -15,8 +15,8 @@ class AddIndexOnProjectIdAndTypeToServices < ActiveRecord::Migration[6.0]
end
end
def
down
def
down
remove_concurrent_index
:services
,
[
:project_id
,
:type
]
add_concurrent_index
:services
,
:project_id
,
name:
INDEX_NAME
add_concurrent_index
:services
,
:project_id
,
name:
INDEX_NAME
remove_concurrent_index
:services
,
[
:project_id
,
:type
]
end
end
end
end
db/migrate/20200306193236_add_index_on_creator_id_and_created_at_to_projects.rb
View file @
2d2a2dfa
...
@@ -15,8 +15,8 @@ class AddIndexOnCreatorIdAndCreatedAtToProjects < ActiveRecord::Migration[6.0]
...
@@ -15,8 +15,8 @@ class AddIndexOnCreatorIdAndCreatedAtToProjects < ActiveRecord::Migration[6.0]
end
end
def
down
def
down
remove_concurrent_index
:projects
,
[
:creator_id
,
:created_at
]
add_concurrent_index
:projects
,
:creator_id
,
name:
INDEX_NAME
add_concurrent_index
:projects
,
:creator_id
,
name:
INDEX_NAME
remove_concurrent_index
:projects
,
[
:creator_id
,
:created_at
]
end
end
end
end
db/schema.rb
View file @
2d2a2dfa
...
@@ -3470,8 +3470,8 @@ ActiveRecord::Schema.define(version: 2020_03_11_165635) do
...
@@ -3470,8 +3470,8 @@ ActiveRecord::Schema.define(version: 2020_03_11_165635) do
t
.
index
[
"created_at"
,
"id"
],
name:
"index_projects_api_created_at_id_desc"
,
order:
{
id: :desc
}
t
.
index
[
"created_at"
,
"id"
],
name:
"index_projects_api_created_at_id_desc"
,
order:
{
id: :desc
}
t
.
index
[
"created_at"
,
"id"
],
name:
"index_projects_api_vis20_created_at"
,
where:
"(visibility_level = 20)"
t
.
index
[
"created_at"
,
"id"
],
name:
"index_projects_api_vis20_created_at"
,
where:
"(visibility_level = 20)"
t
.
index
[
"created_at"
,
"id"
],
name:
"index_projects_on_created_at_and_id"
t
.
index
[
"created_at"
,
"id"
],
name:
"index_projects_on_created_at_and_id"
t
.
index
[
"creator_id"
,
"created_at"
],
name:
"index_projects_on_mirror_creator_id_created_at"
,
where:
"((mirror = true) AND (mirror_trigger_builds = true))"
t
.
index
[
"creator_id"
,
"created_at"
],
name:
"index_projects_on_creator_id_and_created_at"
t
.
index
[
"creator_id"
,
"created_at"
],
name:
"index_projects_on_creator_id_and_created_at"
t
.
index
[
"creator_id"
,
"created_at"
],
name:
"index_projects_on_mirror_creator_id_created_at"
,
where:
"((mirror = true) AND (mirror_trigger_builds = true))"
t
.
index
[
"description"
],
name:
"index_projects_on_description_trigram"
,
opclass: :gin_trgm_ops
,
using: :gin
t
.
index
[
"description"
],
name:
"index_projects_on_description_trigram"
,
opclass: :gin_trgm_ops
,
using: :gin
t
.
index
[
"id"
,
"repository_storage"
,
"last_repository_updated_at"
],
name:
"idx_projects_on_repository_storage_last_repository_updated_at"
t
.
index
[
"id"
,
"repository_storage"
,
"last_repository_updated_at"
],
name:
"idx_projects_on_repository_storage_last_repository_updated_at"
t
.
index
[
"id"
],
name:
"index_on_id_partial_with_legacy_storage"
,
where:
"((storage_version < 2) OR (storage_version IS NULL))"
t
.
index
[
"id"
],
name:
"index_on_id_partial_with_legacy_storage"
,
where:
"((storage_version < 2) OR (storage_version IS NULL))"
...
...
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