diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-08 03:32:37 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-08 03:32:37 +0300 |
commit | 469a50879c1085ec77c95d650b7f135fee2c9e13 (patch) | |
tree | 0d639a63294b5abdb4e4a7bf1ed5a497d5e6869f /db/post_migrate | |
parent | aa5ca44f172f02f04cca448b1f9c17d6d933de40 (diff) |
Add latest changes from gitlab-org/gitlab@13-7-stable-ee
Diffstat (limited to 'db/post_migrate')
-rw-r--r-- | db/post_migrate/20201217112249_change_pages_deployment_size_to_bigint_cleanup.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/post_migrate/20201217112249_change_pages_deployment_size_to_bigint_cleanup.rb b/db/post_migrate/20201217112249_change_pages_deployment_size_to_bigint_cleanup.rb new file mode 100644 index 00000000000..4ed29ba61f9 --- /dev/null +++ b/db/post_migrate/20201217112249_change_pages_deployment_size_to_bigint_cleanup.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class ChangePagesDeploymentSizeToBigintCleanup < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + cleanup_concurrent_column_type_change :pages_deployments, :size + end + + def down + undo_cleanup_concurrent_column_type_change :pages_deployments, :size, :integer, limit: 4 + end +end |