Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-12-20 16:37:47 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-12-20 16:37:47 +0300
commitaee0a117a889461ce8ced6fcf73207fe017f1d99 (patch)
tree891d9ef189227a8445d83f35c1b0fc99573f4380 /db/migrate/20211115132613_create_incident_management_timeline_events.rb
parent8d46af3258650d305f53b819eabf7ab18d22f59e (diff)
Add latest changes from gitlab-org/gitlab@14-6-stable-eev14.6.0-rc42
Diffstat (limited to 'db/migrate/20211115132613_create_incident_management_timeline_events.rb')
-rw-r--r--db/migrate/20211115132613_create_incident_management_timeline_events.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/db/migrate/20211115132613_create_incident_management_timeline_events.rb b/db/migrate/20211115132613_create_incident_management_timeline_events.rb
new file mode 100644
index 00000000000..217dcd27b4c
--- /dev/null
+++ b/db/migrate/20211115132613_create_incident_management_timeline_events.rb
@@ -0,0 +1,30 @@
+# frozen_string_literal: true
+
+class CreateIncidentManagementTimelineEvents < Gitlab::Database::Migration[1.0]
+ def up
+ create_table :incident_management_timeline_events do |t|
+ t.timestamps_with_timezone null: false
+ t.datetime_with_timezone :occurred_at, null: false
+ t.bigint :project_id, null: false
+ t.bigint :author_id
+ t.bigint :issue_id, null: false
+ t.bigint :updated_by_user_id
+ t.bigint :promoted_from_note_id
+ t.integer :cached_markdown_version
+ t.boolean :editable, null: false, default: false
+ t.text :note, limit: 10_000, null: false
+ t.text :note_html, limit: 10_000, null: false
+ t.text :action, limit: 128, null: false
+
+ t.index :project_id, name: 'index_im_timeline_events_project_id'
+ t.index :author_id, name: 'index_im_timeline_events_author_id'
+ t.index :issue_id, name: 'index_im_timeline_events_issue_id'
+ t.index :updated_by_user_id, name: 'index_im_timeline_events_updated_by_user_id'
+ t.index :promoted_from_note_id, name: 'index_im_timeline_events_promoted_from_note_id'
+ end
+ end
+
+ def down
+ drop_table :incident_management_timeline_events
+ end
+end