diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-08 21:09:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-08 21:09:16 +0300 |
commit | 80e9fdc9682cfbcfb9202a2733605a6a6bd23f05 (patch) | |
tree | 168375ea13d1a1f01d4cbcf6f0513fc9883e9477 /db/migrate | |
parent | 5372e109c0660e4670aa987568a51082beca1b3c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20200402124802_add_correlation_id_to_project_import_state.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/db/migrate/20200402124802_add_correlation_id_to_project_import_state.rb b/db/migrate/20200402124802_add_correlation_id_to_project_import_state.rb new file mode 100644 index 00000000000..974009b101a --- /dev/null +++ b/db/migrate/20200402124802_add_correlation_id_to_project_import_state.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +class AddCorrelationIdToProjectImportState < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def up + with_lock_retries do + add_column :project_mirror_data, :correlation_id_value, :string, limit: 128 + end + end + + def down + with_lock_retries do + remove_column :project_mirror_data, :correlation_id_value + end + end +end |