diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-04 22:29:43 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-04 22:29:43 +0000 |
commit | ee3c8d00bd8c17201da0b116a9b3b276804b855f (patch) | |
tree | e5f69a4c4964e983145b5c05e86699a904989350 /db/post_migrate/20230321163547_cleanup_conversion_big_int_ci_build_needs.rb | |
parent | d0338479aa58e89b33a367daad2a3e47c3dc9823 (diff) | |
download | gitlab-ce-ee3c8d00bd8c17201da0b116a9b3b276804b855f.tar.gz |
Add latest changes from gitlab-org/gitlab@15-11-stable-ee
Diffstat (limited to 'db/post_migrate/20230321163547_cleanup_conversion_big_int_ci_build_needs.rb')
-rw-r--r-- | db/post_migrate/20230321163547_cleanup_conversion_big_int_ci_build_needs.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db/post_migrate/20230321163547_cleanup_conversion_big_int_ci_build_needs.rb b/db/post_migrate/20230321163547_cleanup_conversion_big_int_ci_build_needs.rb index 4812cb2deca..680a496e639 100644 --- a/db/post_migrate/20230321163547_cleanup_conversion_big_int_ci_build_needs.rb +++ b/db/post_migrate/20230321163547_cleanup_conversion_big_int_ci_build_needs.rb @@ -1,15 +1,25 @@ # frozen_string_literal: true class CleanupConversionBigIntCiBuildNeeds < Gitlab::Database::Migration[2.1] + include Gitlab::Database::MigrationHelpers::ConvertToBigint + enable_lock_retries! TABLE = :ci_build_needs def up + return unless should_run? + cleanup_conversion_of_integer_to_bigint(TABLE, :id) end def down + return unless should_run? + restore_conversion_of_integer_to_bigint(TABLE, :id) end + + def should_run? + com_or_dev_or_test_but_not_jh? + end end |