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

20231102142557_remove_zoekt_shard_null_constraint_from_indexed_namespaces.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 08e76c749c773a50bea1f8824e1c59b3bb7d939b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

class RemoveZoektShardNullConstraintFromIndexedNamespaces < Gitlab::Database::Migration[2.2]
  milestone '16.6'
  disable_ddl_transaction!

  def up
    change_column_null :zoekt_indexed_namespaces, :zoekt_shard_id, true
  end

  def down
    change_column_null :zoekt_indexed_namespaces, :zoekt_shard_id, false
  end
end