diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-03-26 20:45:18 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-04-05 14:14:53 +0900 |
commit | accc2cab20cb1546605f05aa68545d2d55c1f522 (patch) | |
tree | e4e675051e045864b4ea682a7343f31a5ea40212 /db/migrate | |
parent | d4400e6b5c172916eb6dded8ebb04b8b650f493f (diff) | |
download | gitlab-ce-accc2cab20cb1546605f05aa68545d2d55c1f522.tar.gz |
Add ci_job_trace_chunks table
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20180326202229_create_ci_job_trace_chunks.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20180326202229_create_ci_job_trace_chunks.rb b/db/migrate/20180326202229_create_ci_job_trace_chunks.rb new file mode 100644 index 00000000000..f7548cd766e --- /dev/null +++ b/db/migrate/20180326202229_create_ci_job_trace_chunks.rb @@ -0,0 +1,16 @@ +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 |