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
b9f4c623
Commit
b9f4c623
authored
Dec 04, 2017
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove index on file_type
parent
a0874891
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
8 deletions
+2
-8
db/migrate/20170918072948_create_job_artifacts.rb
db/migrate/20170918072948_create_job_artifacts.rb
+2
-2
db/migrate/20170918072949_add_file_store_job_artifacts.rb
db/migrate/20170918072949_add_file_store_job_artifacts.rb
+0
-3
db/schema.rb
db/schema.rb
+0
-3
No files found.
db/migrate/20170918072948_create_job_artifacts.rb
View file @
b9f4c623
...
@@ -6,8 +6,8 @@ class CreateJobArtifacts < ActiveRecord::Migration
...
@@ -6,8 +6,8 @@ class CreateJobArtifacts < ActiveRecord::Migration
def
change
def
change
create_table
:ci_job_artifacts
do
|
t
|
create_table
:ci_job_artifacts
do
|
t
|
t
.
belongs_to
:project
,
null:
false
,
index:
true
,
foreign_key:
{
on_delete: :cascade
}
t
.
belongs_to
:project
,
null:
false
,
index:
true
,
foreign_key:
{
on_delete: :cascade
}
t
.
integer
:job_id
,
null:
false
,
index:
true
t
.
integer
:job_id
,
null:
false
t
.
integer
:file_type
,
null:
false
,
index:
true
t
.
integer
:file_type
,
null:
false
t
.
integer
:size
,
limit:
8
t
.
integer
:size
,
limit:
8
t
.
datetime_with_timezone
:created_at
,
null:
false
t
.
datetime_with_timezone
:created_at
,
null:
false
...
...
db/migrate/20170918072949_add_file_store_job_artifacts.rb
View file @
b9f4c623
...
@@ -6,9 +6,6 @@ class AddFileStoreJobArtifacts < ActiveRecord::Migration
...
@@ -6,9 +6,6 @@ class AddFileStoreJobArtifacts < ActiveRecord::Migration
def
up
def
up
add_column
(
:ci_job_artifacts
,
:file_store
,
:integer
)
add_column
(
:ci_job_artifacts
,
:file_store
,
:integer
)
# Run on an empty table, but else Rubocop is not happy
add_concurrent_index
(
:ci_job_artifacts
,
:file_store
)
end
end
def
down
def
down
...
...
db/schema.rb
View file @
b9f4c623
...
@@ -408,10 +408,7 @@ ActiveRecord::Schema.define(version: 20171130145523) do
...
@@ -408,10 +408,7 @@ ActiveRecord::Schema.define(version: 20171130145523) do
t
.
integer
"file_store"
t
.
integer
"file_store"
end
end
add_index
"ci_job_artifacts"
,
[
"file_store"
],
name:
"index_ci_job_artifacts_on_file_store"
,
using: :btree
add_index
"ci_job_artifacts"
,
[
"file_type"
],
name:
"index_ci_job_artifacts_on_file_type"
,
using: :btree
add_index
"ci_job_artifacts"
,
[
"job_id"
,
"file_type"
],
name:
"index_ci_job_artifacts_on_job_id_and_file_type"
,
unique:
true
,
using: :btree
add_index
"ci_job_artifacts"
,
[
"job_id"
,
"file_type"
],
name:
"index_ci_job_artifacts_on_job_id_and_file_type"
,
unique:
true
,
using: :btree
add_index
"ci_job_artifacts"
,
[
"job_id"
],
name:
"index_ci_job_artifacts_on_job_id"
,
using: :btree
add_index
"ci_job_artifacts"
,
[
"project_id"
],
name:
"index_ci_job_artifacts_on_project_id"
,
using: :btree
add_index
"ci_job_artifacts"
,
[
"project_id"
],
name:
"index_ci_job_artifacts_on_project_id"
,
using: :btree
create_table
"ci_pipeline_schedule_variables"
,
force: :cascade
do
|
t
|
create_table
"ci_pipeline_schedule_variables"
,
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