diff options
Diffstat (limited to 'db/post_migrate/20210426094549_backfill_ci_builds_for_bigint_conversion.rb')
-rw-r--r-- | db/post_migrate/20210426094549_backfill_ci_builds_for_bigint_conversion.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/db/post_migrate/20210426094549_backfill_ci_builds_for_bigint_conversion.rb b/db/post_migrate/20210426094549_backfill_ci_builds_for_bigint_conversion.rb deleted file mode 100644 index fd071ec9a1a..00000000000 --- a/db/post_migrate/20210426094549_backfill_ci_builds_for_bigint_conversion.rb +++ /dev/null @@ -1,30 +0,0 @@ -# frozen_string_literal: true - -class BackfillCiBuildsForBigintConversion < ActiveRecord::Migration[6.0] - include Gitlab::Database::MigrationHelpers - - disable_ddl_transaction! - - DOWNTIME = false - - TABLE = :ci_builds - COLUMNS = %i(id stage_id).freeze - - def up - return unless should_run? - - backfill_conversion_of_integer_to_bigint TABLE, COLUMNS, batch_size: 15000, sub_batch_size: 100 - end - - def down - return unless should_run? - - revert_backfill_conversion_of_integer_to_bigint TABLE, COLUMNS - end - - private - - def should_run? - Gitlab.dev_or_test_env? || Gitlab.com? - end -end |