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
74f0a621
Commit
74f0a621
authored
Mar 01, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add index to project_id on the project_registries table
parent
0129635c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
db_geo/migrate/20170302005747_add_index_to_project_id_on_project_registries.rb
...02005747_add_index_to_project_id_on_project_registries.rb
+11
-0
db_geo/schema.rb
db_geo/schema.rb
+3
-1
No files found.
db_geo/migrate/20170302005747_add_index_to_project_id_on_project_registries.rb
0 → 100644
View file @
74f0a621
class
AddIndexToProjectIdOnProjectRegistries
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
change
add_concurrent_index
:project_registries
,
:project_id
end
end
db_geo/schema.rb
View file @
74f0a621
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
20170
206203234
)
do
ActiveRecord
::
Schema
.
define
(
version:
20170
302005747
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -21,4 +21,6 @@ ActiveRecord::Schema.define(version: 20170206203234) do
t
.
datetime
"last_repository_successful_sync_at"
t
.
datetime
"created_at"
,
null:
false
end
add_index
"project_registries"
,
[
"project_id"
],
name:
"index_project_registries_on_project_id"
,
using: :btree
end
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