2023-05-27 22:25:52 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module Database
|
|
|
|
module MigrationHelpers
|
|
|
|
module ConvertToBigint
|
|
|
|
# This helper is extracted for the purpose of
|
|
|
|
# https://gitlab.com/gitlab-org/gitlab/-/issues/392815
|
|
|
|
# so that we can test all combinations just once,
|
|
|
|
# and simplify migration tests.
|
|
|
|
#
|
|
|
|
# Once we are done with the PK conversions we can remove this.
|
|
|
|
def com_or_dev_or_test_but_not_jh?
|
2023-06-20 00:43:36 +05:30
|
|
|
return true if Gitlab.dev_or_test_env?
|
|
|
|
|
|
|
|
Gitlab.com? && !Gitlab.jh?
|
2023-05-27 22:25:52 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|