Skip to content
Snippets Groups Projects

Add NOT NULL for sharding key on work_item_parent_links

All threads resolved!
5 files
+ 35
0
Compare changes
  • Side-by-side
  • Inline
Files
5
# frozen_string_literal: true
class AddWorkItemParentLinksNamespaceIdNotNullConstraint < Gitlab::Database::Migration[2.2]
disable_ddl_transaction!
milestone '17.9'
def up
add_not_null_constraint :work_item_parent_links, :namespace_id, validate: false
end
def down
remove_not_null_constraint :work_item_parent_links, :namespace_id
end
end
Loading