diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-14 09:13:49 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-14 09:13:49 +0300 |
commit | 3612694ce3931fe7fd225d9c2df42dbd513121df (patch) | |
tree | d851570d1373876fe3bbe0752c2b3d6919c6c837 /lib/gitlab/database | |
parent | 32380631045bf0c30c6ae6952a4a62e3e5436b82 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/database')
-rw-r--r-- | lib/gitlab/database/migration_helpers/convert_to_bigint.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/gitlab/database/migration_helpers/convert_to_bigint.rb b/lib/gitlab/database/migration_helpers/convert_to_bigint.rb new file mode 100644 index 00000000000..cf5640deb3d --- /dev/null +++ b/lib/gitlab/database/migration_helpers/convert_to_bigint.rb @@ -0,0 +1,19 @@ +# 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? + !Gitlab.jh? && (Gitlab.com? || Gitlab.dev_or_test_env?) + end + end + end + end +end |