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
Léo-Paul Géneau
gitlab-ce
Commits
82ada5d3
Commit
82ada5d3
authored
Sep 04, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mysql2 query size
parent
d699a48d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
db/migrate/20180831164904_fix_prometheus_metric_query_limits.rb
...rate/20180831164904_fix_prometheus_metric_query_limits.rb
+17
-0
db/migrate/prometheus_metrics_limits_to_mysql.rb
db/migrate/prometheus_metrics_limits_to_mysql.rb
+12
-0
No files found.
db/migrate/20180831164904_fix_prometheus_metric_query_limits.rb
0 → 100644
View file @
82ada5d3
# frozen_string_literal: true
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
require
Rails
.
root
.
join
(
'db/migrate/prometheus_metrics_limits_to_mysql'
)
class
FixPrometheusMetricQueryLimits
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
def
up
PrometheusMetricsLimitsToMysql
.
new
.
up
end
def
down
# no-op
end
end
db/migrate/prometheus_metrics_limits_to_mysql.rb
0 → 100644
View file @
82ada5d3
class
PrometheusMetricsLimitsToMysql
<
ActiveRecord
::
Migration
DOWNTIME
=
false
def
up
return
unless
Gitlab
::
Database
.
mysql?
change_column
:prometheus_metrics
,
:query
,
:text
,
limit:
4096
,
default:
nil
end
def
down
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