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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
bc43588c
Commit
bc43588c
authored
Apr 23, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chnage raw_data type to binary from text
parent
7c90fd77
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
db/migrate/20180326202229_create_ci_job_trace_chunks.rb
db/migrate/20180326202229_create_ci_job_trace_chunks.rb
+1
-1
db/migrate/limits_ci_job_trace_chunks_raw_data_for_mysql.rb
db/migrate/limits_ci_job_trace_chunks_raw_data_for_mysql.rb
+1
-1
db/schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20180326202229_create_ci_job_trace_chunks.rb
View file @
bc43588c
...
...
@@ -8,7 +8,7 @@ class CreateCiJobTraceChunks < ActiveRecord::Migration
t
.
integer
:job_id
,
null:
false
t
.
integer
:chunk_index
,
null:
false
t
.
integer
:data_store
,
null:
false
t
.
text
:raw_data
t
.
binary
:raw_data
t
.
foreign_key
:ci_builds
,
column: :job_id
,
on_delete: :cascade
t
.
index
[
:job_id
,
:chunk_index
],
unique:
true
...
...
db/migrate/limits_ci_job_trace_chunks_raw_data_for_mysql.rb
View file @
bc43588c
...
...
@@ -4,6 +4,6 @@ class LimitsCiJobTraceChunksRawDataForMysql < ActiveRecord::Migration
# 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
change_column
:ci_job_trace_chunks
,
:raw_data
,
:
text
,
limit:
16
.
megabytes
-
1
#MEDIUMTEXT
change_column
:ci_job_trace_chunks
,
:raw_data
,
:
binary
,
limit:
16
.
megabytes
-
1
#MEDIUMTEXT
end
end
db/schema.rb
View file @
bc43588c
...
...
@@ -375,7 +375,7 @@ ActiveRecord::Schema.define(version: 20180418053107) do
t
.
integer
"job_id"
,
null:
false
t
.
integer
"chunk_index"
,
null:
false
t
.
integer
"data_store"
,
null:
false
t
.
text
"raw_data"
t
.
binary
"raw_data"
end
add_index
"ci_job_trace_chunks"
,
[
"job_id"
,
"chunk_index"
],
name:
"index_ci_job_trace_chunks_on_job_id_and_chunk_index"
,
unique:
true
,
using: :btree
...
...
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