Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20221208122921_remove_constraints_from_ci_resources_for_partition_id.rb')
-rw-r--r--db/migrate/20221208122921_remove_constraints_from_ci_resources_for_partition_id.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/db/migrate/20221208122921_remove_constraints_from_ci_resources_for_partition_id.rb b/db/migrate/20221208122921_remove_constraints_from_ci_resources_for_partition_id.rb
deleted file mode 100644
index ffdd744b05c..00000000000
--- a/db/migrate/20221208122921_remove_constraints_from_ci_resources_for_partition_id.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-# frozen_string_literal: true
-
-class RemoveConstraintsFromCiResourcesForPartitionId < Gitlab::Database::Migration[2.1]
- enable_lock_retries!
-
- def up
- change_column_null :ci_resources, :partition_id, true
- end
-
- def down
- # no-op
- # Adding back the not null constraint requires a long exclusive lock.
- # Also depending on when it gets called, it might not even be possible to
- # execute because the application could have inserted null values.
- end
-end