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
d8d30f8c
Commit
d8d30f8c
authored
May 21, 2018
by
Andreas Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase text limit for GPG keys (mysql only).
Closes #46530.
parent
ff5f3560
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
1 deletion
+25
-1
changelogs/unreleased/ab-46530-mediumtext-for-gpg-keys.yml
changelogs/unreleased/ab-46530-mediumtext-for-gpg-keys.yml
+5
-0
db/migrate/20180521171529_increase_mysql_text_limit_for_gpg_keys.rb
.../20180521171529_increase_mysql_text_limit_for_gpg_keys.rb
+2
-0
db/migrate/gpg_keys_limits_to_mysql.rb
db/migrate/gpg_keys_limits_to_mysql.rb
+15
-0
db/schema.rb
db/schema.rb
+1
-1
lib/tasks/migrate/add_limits_mysql.rake
lib/tasks/migrate/add_limits_mysql.rake
+2
-0
No files found.
changelogs/unreleased/ab-46530-mediumtext-for-gpg-keys.yml
0 → 100644
View file @
d8d30f8c
---
title
:
Increase text limit for GPG keys (mysql only).
merge_request
:
19069
author
:
type
:
other
db/migrate/20180521171529_increase_mysql_text_limit_for_gpg_keys.rb
0 → 100644
View file @
d8d30f8c
# rubocop:disable all
require_relative
'gpg_keys_limits_to_mysql'
db/migrate/gpg_keys_limits_to_mysql.rb
0 → 100644
View file @
d8d30f8c
class
IncreaseMysqlTextLimitForGpgKeys
<
ActiveRecord
::
Migration
# Set this constant to true if this migration requires downtime.
DOWNTIME
=
false
def
up
return
unless
Gitlab
::
Database
.
mysql?
change_column
:gpg_keys
,
:key
,
:text
,
limit:
16
.
megabytes
-
1
end
def
down
# no-op
end
end
db/schema.rb
View file @
d8d30f8c
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201805
17082340
)
do
ActiveRecord
::
Schema
.
define
(
version:
201805
21171529
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
lib/tasks/migrate/add_limits_mysql.rake
View file @
d8d30f8c
...
...
@@ -2,6 +2,7 @@ require Rails.root.join('db/migrate/limits_to_mysql')
require
Rails
.
root
.
join
(
'db/migrate/markdown_cache_limits_to_mysql'
)
require
Rails
.
root
.
join
(
'db/migrate/merge_request_diff_file_limits_to_mysql'
)
require
Rails
.
root
.
join
(
'db/migrate/limits_ci_build_trace_chunks_raw_data_for_mysql'
)
require
Rails
.
root
.
join
(
'db/migrate/gpg_keys_limits_to_mysql'
)
desc
"GitLab | Add limits to strings in mysql database"
task
add_limits_mysql: :environment
do
...
...
@@ -10,4 +11,5 @@ task add_limits_mysql: :environment do
MarkdownCacheLimitsToMysql
.
new
.
up
MergeRequestDiffFileLimitsToMysql
.
new
.
up
LimitsCiBuildTraceChunksRawDataForMysql
.
new
.
up
IncreaseMysqlTextLimitForGpgKeys
.
new
.
up
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