diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-18 16:16:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-18 16:16:36 +0300 |
commit | 311b0269b4eb9839fa63f80c8d7a58f32b8138a0 (patch) | |
tree | 07e7870bca8aed6d61fdcc810731c50d2c40af47 /db/post_migrate/20210923192649_remove_open_project_data_table.rb | |
parent | 27909cef6c4170ed9205afa7426b8d3de47cbb0c (diff) |
Add latest changes from gitlab-org/gitlab@14-5-stable-eev14.5.0-rc42
Diffstat (limited to 'db/post_migrate/20210923192649_remove_open_project_data_table.rb')
-rw-r--r-- | db/post_migrate/20210923192649_remove_open_project_data_table.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/db/post_migrate/20210923192649_remove_open_project_data_table.rb b/db/post_migrate/20210923192649_remove_open_project_data_table.rb new file mode 100644 index 00000000000..252d7e07261 --- /dev/null +++ b/db/post_migrate/20210923192649_remove_open_project_data_table.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +class RemoveOpenProjectDataTable < Gitlab::Database::Migration[1.0] + def up + drop_table :open_project_tracker_data + end + + def down + create_table :open_project_tracker_data do |t| + t.integer :service_id, index: { name: 'index_open_project_tracker_data_on_service_id' }, null: false + t.timestamps_with_timezone + t.string :encrypted_url, limit: 255 + t.string :encrypted_url_iv, limit: 255 + t.string :encrypted_api_url, limit: 255 + t.string :encrypted_api_url_iv, limit: 255 + t.string :encrypted_token, limit: 255 + t.string :encrypted_token_iv, limit: 255 + t.string :closed_status_id, limit: 5 + t.string :project_identifier_code, limit: 100 + end + end +end |