diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-13 12:15:20 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-13 12:15:20 +0000 |
commit | 944a3a7b7e19354abdfcaa79129d0736c4b8565f (patch) | |
tree | 627802e84525946f11fdd6976ab5f04fb69e702c /db/post_migrate/20230405072302_remove_p_ci_builds_metadata_partition_id_default.rb | |
parent | 62798ed33c878f936009da05fdddb707e1c7d58d (diff) | |
download | gitlab-ce-944a3a7b7e19354abdfcaa79129d0736c4b8565f.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/post_migrate/20230405072302_remove_p_ci_builds_metadata_partition_id_default.rb')
-rw-r--r-- | db/post_migrate/20230405072302_remove_p_ci_builds_metadata_partition_id_default.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/post_migrate/20230405072302_remove_p_ci_builds_metadata_partition_id_default.rb b/db/post_migrate/20230405072302_remove_p_ci_builds_metadata_partition_id_default.rb new file mode 100644 index 00000000000..303210d85c7 --- /dev/null +++ b/db/post_migrate/20230405072302_remove_p_ci_builds_metadata_partition_id_default.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class RemovePCiBuildsMetadataPartitionIdDefault < Gitlab::Database::Migration[2.1] + enable_lock_retries! + + def up + change_column_default :p_ci_builds_metadata, :partition_id, from: 100, to: nil + end + + def down + change_column_default :p_ci_builds_metadata, :partition_id, from: nil, to: 100 + end +end |