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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
f86580c0
Commit
f86580c0
authored
Jul 25, 2017
by
Alexis Reigel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no more more :length due to mysql set_index hack
parent
ce4e0837
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
db/migrate/limits_to_mysql.rb
db/migrate/limits_to_mysql.rb
+0
-13
No files found.
db/migrate/limits_to_mysql.rb
View file @
f86580c0
# rubocop:disable all
require
Rails
.
root
.
join
(
'lib/gitlab/database/migration_helpers.rb'
)
class
LimitsToMysql
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
def
up
return
unless
ActiveRecord
::
Base
.
configurations
[
Rails
.
env
][
'adapter'
]
=~
/^mysql/
...
...
@@ -12,14 +8,5 @@ class LimitsToMysql < ActiveRecord::Migration
change_column
:snippets
,
:content
,
:text
,
limit:
2147483647
change_column
:notes
,
:st_diff
,
:text
,
limit:
2147483647
change_column
:events
,
:data
,
:text
,
limit:
2147483647
[
[
:gpg_keys
,
:primary_keyid
],
[
:gpg_signatures
,
:commit_sha
],
[
:gpg_signatures
,
:gpg_key_primary_keyid
]
].
each
do
|
table_name
,
column_name
|
remove_index
table_name
,
column_name
if
index_exists?
(
table_name
,
column_name
)
add_concurrent_index
table_name
,
column_name
,
length:
20
end
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