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
0b5ff7dd
Commit
0b5ff7dd
authored
Sep 04, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix migrations
parent
9f2a6ca0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
db/migrate/20180831164904_fix_prometheus_metric_query_limits.rb
...rate/20180831164904_fix_prometheus_metric_query_limits.rb
+2
-0
lib/tasks/migrate/add_limits_mysql.rake
lib/tasks/migrate/add_limits_mysql.rake
+2
-0
No files found.
db/migrate/20180831164904_fix_prometheus_metric_query_limits.rb
View file @
0b5ff7dd
...
...
@@ -7,6 +7,8 @@ require Rails.root.join('db/migrate/prometheus_metrics_limits_to_mysql')
class
FixPrometheusMetricQueryLimits
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
PrometheusMetricsLimitsToMysql
.
new
.
up
end
...
...
lib/tasks/migrate/add_limits_mysql.rake
View file @
0b5ff7dd
...
...
@@ -3,6 +3,7 @@ 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'
)
require
Rails
.
root
.
join
(
'db/migrate/prometheus_metrics_limits_to_mysql'
)
desc
"GitLab | Add limits to strings in mysql database"
task
add_limits_mysql: :environment
do
...
...
@@ -12,4 +13,5 @@ task add_limits_mysql: :environment do
MergeRequestDiffFileLimitsToMysql
.
new
.
up
LimitsCiBuildTraceChunksRawDataForMysql
.
new
.
up
IncreaseMysqlTextLimitForGpgKeys
.
new
.
up
PrometheusMetricsLimitsToMysql
.
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