Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
GitLab Community Edition
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hkystyle
GitLab Community Edition
Commits
b5f4ed37
Commit
b5f4ed37
authored
Jun 05, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix length size to use TEXT
parent
b38b5605
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
db/migrate/20180428200509_add_index_to_ci_builds_artifacts_file.rb
...e/20180428200509_add_index_to_ci_builds_artifacts_file.rb
+2
-2
No files found.
db/migrate/20180428200509_add_index_to_ci_builds_artifacts_file.rb
View file @
b5f4ed37
...
...
@@ -9,10 +9,10 @@ class AddIndexToCiBuildsArtifactsFile < ActiveRecord::Migration
# We add an temporary index to `ci_builds.artifacts_file` column to avoid statements timeout in legacy artifacts migrations
# This index is to be removed after we have cleaned up background migrations
# https://gitlab.com/gitlab-org/gitlab-ce/issues/46866
add_concurrent_index
:ci_builds
,
:artifacts_file
,
where:
"artifacts_file <> ''"
,
length:
65535
add_concurrent_index
:ci_builds
,
:artifacts_file
,
where:
"artifacts_file <> ''"
,
length:
65535
-
1
end
def
down
remove_concurrent_index
:ci_builds
,
:artifacts_file
,
where:
"artifacts_file <> ''"
,
length:
65535
remove_concurrent_index
:ci_builds
,
:artifacts_file
,
where:
"artifacts_file <> ''"
,
length:
65535
-
1
end
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