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
5df8efac
Commit
5df8efac
authored
Jan 19, 2018
by
Micaël Bergeron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add the uploads(uploaders, path) index
parent
0345a10b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
db/migrate/20180119135717_add_uploader_index_to_uploads.rb
db/migrate/20180119135717_add_uploader_index_to_uploads.rb
+15
-0
db/schema.rb
db/schema.rb
+2
-2
No files found.
db/migrate/20180119135717_add_uploader_index_to_uploads.rb
0 → 100644
View file @
5df8efac
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
AddUploaderIndexToUploads
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
change
remove_concurrent_index
:uploads
,
:path
add_concurrent_index
:uploads
,
[
:uploader
,
:path
],
using: :btree
end
end
db/schema.rb
View file @
5df8efac
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201801
0523380
7
)
do
ActiveRecord
::
Schema
.
define
(
version:
201801
1913571
7
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -2250,7 +2250,7 @@ ActiveRecord::Schema.define(version: 20180105233807) do
add_index
"uploads"
,
[
"checksum"
],
name:
"index_uploads_on_checksum"
,
using: :btree
add_index
"uploads"
,
[
"model_id"
,
"model_type"
],
name:
"index_uploads_on_model_id_and_model_type"
,
using: :btree
add_index
"uploads"
,
[
"
path"
],
name:
"index_uploads_on
_path"
,
using: :btree
add_index
"uploads"
,
[
"
uploader"
,
"path"
],
name:
"index_uploads_on_uploader_and
_path"
,
using: :btree
create_table
"user_agent_details"
,
force: :cascade
do
|
t
|
t
.
string
"user_agent"
,
null:
false
...
...
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