diff options
Diffstat (limited to 'db/post_migrate/20210915022415_cleanup_bigint_conversion_for_ci_builds.rb')
-rw-r--r-- | db/post_migrate/20210915022415_cleanup_bigint_conversion_for_ci_builds.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/db/post_migrate/20210915022415_cleanup_bigint_conversion_for_ci_builds.rb b/db/post_migrate/20210915022415_cleanup_bigint_conversion_for_ci_builds.rb new file mode 100644 index 00000000000..d72866691ff --- /dev/null +++ b/db/post_migrate/20210915022415_cleanup_bigint_conversion_for_ci_builds.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +class CleanupBigintConversionForCiBuilds < Gitlab::Database::Migration[1.0] + enable_lock_retries! + + TABLE = :ci_builds + COLUMNS = [:id, :stage_id] + + def up + cleanup_conversion_of_integer_to_bigint(TABLE, COLUMNS) + end + + def down + restore_conversion_of_integer_to_bigint(TABLE, COLUMNS) + end +end |