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
Boxiang Sun
gitlab-ce
Commits
eaf29cce
Commit
eaf29cce
authored
6 years ago
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use MEDIUMTEXT(16MB) type when Mysql is used
parent
4c6cb3cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
db/migrate/20180326202229_create_ci_job_trace_chunks.rb
db/migrate/20180326202229_create_ci_job_trace_chunks.rb
+3
-1
No files found.
db/migrate/20180326202229_create_ci_job_trace_chunks.rb
View file @
eaf29cce
...
@@ -8,7 +8,9 @@ class CreateCiJobTraceChunks < ActiveRecord::Migration
...
@@ -8,7 +8,9 @@ class CreateCiJobTraceChunks < ActiveRecord::Migration
t
.
integer
:job_id
,
null:
false
t
.
integer
:job_id
,
null:
false
t
.
integer
:chunk_index
,
null:
false
t
.
integer
:chunk_index
,
null:
false
t
.
integer
:data_store
,
null:
false
t
.
integer
:data_store
,
null:
false
t
.
text
:raw_data
# Mysql needs MEDIUMTEXT type (up to 16MB) rather than TEXT (up to 64KB)
# Because 'raw_data' is always capped by Ci::JobTraceChunk::CHUNK_SIZE, which is 128KB
t
.
text
:raw_data
,
limit:
16
.
megabytes
-
1
t
.
foreign_key
:ci_builds
,
column: :job_id
,
on_delete: :cascade
t
.
foreign_key
:ci_builds
,
column: :job_id
,
on_delete: :cascade
t
.
index
[
:job_id
,
:chunk_index
],
unique:
true
t
.
index
[
:job_id
,
:chunk_index
],
unique:
true
...
...
This diff is collapsed.
Click to expand it.
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