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
accc2cab
Commit
accc2cab
authored
Mar 26, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ci_job_trace_chunks table
parent
d4400e6b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
0 deletions
+42
-0
app/models/ci/job_trace_chunk.rb
app/models/ci/job_trace_chunk.rb
+7
-0
db/migrate/20180326202229_create_ci_job_trace_chunks.rb
db/migrate/20180326202229_create_ci_job_trace_chunks.rb
+16
-0
db/schema.rb
db/schema.rb
+19
-0
No files found.
app/models/ci/job_trace_chunk.rb
0 → 100644
View file @
accc2cab
module
Ci
class
JobTraceChunk
<
ActiveRecord
::
Base
extend
Gitlab
::
Ci
::
Model
belongs_to
:job
,
class_name:
"Ci::Build"
,
foreign_key: :job_id
end
end
db/migrate/20180326202229_create_ci_job_trace_chunks.rb
0 → 100644
View file @
accc2cab
class
CreateCiJobTraceChunks
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
change
create_table
:ci_job_trace_chunks
do
|
t
|
t
.
integer
:job_id
,
null:
false
t
.
integer
:chunk_index
,
null:
false
t
.
text
:data
t
.
foreign_key
:ci_builds
,
column: :job_id
,
on_delete: :cascade
t
.
index
[
:chunk_index
,
:job_id
],
unique:
true
end
end
end
db/schema.rb
View file @
accc2cab
...
...
@@ -370,6 +370,22 @@ ActiveRecord::Schema.define(version: 20180327101207) do
add_index
"ci_job_artifacts"
,
[
"job_id"
,
"file_type"
],
name:
"index_ci_job_artifacts_on_job_id_and_file_type"
,
unique:
true
,
using: :btree
add_index
"ci_job_artifacts"
,
[
"project_id"
],
name:
"index_ci_job_artifacts_on_project_id"
,
using: :btree
create_table
"ci_job_trace_chunks"
,
force: :cascade
do
|
t
|
t
.
integer
"job_id"
,
null:
false
t
.
integer
"chunk_index"
,
null:
false
t
.
text
"data"
end
add_index
"ci_job_trace_chunks"
,
[
"chunk_index"
,
"job_id"
],
name:
"index_ci_job_trace_chunks_on_chunk_index_and_job_id"
,
unique:
true
,
using: :btree
create_table
"ci_pipeline_chat_data"
,
id: :bigserial
,
force: :cascade
do
|
t
|
t
.
integer
"pipeline_id"
,
null:
false
t
.
integer
"chat_name_id"
,
null:
false
t
.
text
"response_url"
,
null:
false
end
add_index
"ci_pipeline_chat_data"
,
[
"pipeline_id"
],
name:
"index_ci_pipeline_chat_data_on_pipeline_id"
,
unique:
true
,
using: :btree
create_table
"ci_pipeline_schedule_variables"
,
force: :cascade
do
|
t
|
t
.
string
"key"
,
null:
false
t
.
text
"value"
...
...
@@ -2044,6 +2060,9 @@ ActiveRecord::Schema.define(version: 20180327101207) do
add_foreign_key
"ci_group_variables"
,
"namespaces"
,
column:
"group_id"
,
name:
"fk_33ae4d58d8"
,
on_delete: :cascade
add_foreign_key
"ci_job_artifacts"
,
"ci_builds"
,
column:
"job_id"
,
on_delete: :cascade
add_foreign_key
"ci_job_artifacts"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"ci_job_trace_chunks"
,
"ci_builds"
,
column:
"job_id"
,
on_delete: :cascade
add_foreign_key
"ci_pipeline_chat_data"
,
"chat_names"
,
on_delete: :cascade
add_foreign_key
"ci_pipeline_chat_data"
,
"ci_pipelines"
,
column:
"pipeline_id"
,
on_delete: :cascade
add_foreign_key
"ci_pipeline_schedule_variables"
,
"ci_pipeline_schedules"
,
column:
"pipeline_schedule_id"
,
name:
"fk_41c35fda51"
,
on_delete: :cascade
add_foreign_key
"ci_pipeline_schedules"
,
"projects"
,
name:
"fk_8ead60fcc4"
,
on_delete: :cascade
add_foreign_key
"ci_pipeline_schedules"
,
"users"
,
column:
"owner_id"
,
name:
"fk_9ea99f58d2"
,
on_delete: :nullify
...
...
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