summaryrefslogtreecommitdiff
path: root/db/migrate/20200622104923_create_ci_pipeline_messages_table.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-11-18 13:16:36 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-11-18 13:16:36 +0000
commit311b0269b4eb9839fa63f80c8d7a58f32b8138a0 (patch)
tree07e7870bca8aed6d61fdcc810731c50d2c40af47 /db/migrate/20200622104923_create_ci_pipeline_messages_table.rb
parent27909cef6c4170ed9205afa7426b8d3de47cbb0c (diff)
downloadgitlab-ce-311b0269b4eb9839fa63f80c8d7a58f32b8138a0.tar.gz
Add latest changes from gitlab-org/gitlab@14-5-stable-eev14.5.0-rc42
Diffstat (limited to 'db/migrate/20200622104923_create_ci_pipeline_messages_table.rb')
-rw-r--r--db/migrate/20200622104923_create_ci_pipeline_messages_table.rb27
1 files changed, 0 insertions, 27 deletions
diff --git a/db/migrate/20200622104923_create_ci_pipeline_messages_table.rb b/db/migrate/20200622104923_create_ci_pipeline_messages_table.rb
deleted file mode 100644
index 40d63b1189e..00000000000
--- a/db/migrate/20200622104923_create_ci_pipeline_messages_table.rb
+++ /dev/null
@@ -1,27 +0,0 @@
-# frozen_string_literal: true
-
-class CreateCiPipelineMessagesTable < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
- ERROR_SEVERITY = 0
- MAX_CONTENT_LENGTH = 10_000
-
- disable_ddl_transaction!
-
- def up
- with_lock_retries do
- create_table :ci_pipeline_messages do |t|
- t.integer :severity, null: false, default: ERROR_SEVERITY, limit: 2
- t.references :pipeline, index: true, null: false, foreign_key: { to_table: :ci_pipelines, on_delete: :cascade }, type: :integer
- t.text :content, null: false
- end
- end
-
- add_text_limit :ci_pipeline_messages, :content, MAX_CONTENT_LENGTH
- end
-
- def down
- drop_table :ci_pipeline_messages
- end
-end