Skip to content
Snippets Groups Projects
Unverified Commit d7bf8ad3 authored by Marius Bobin's avatar Marius Bobin Committed by GitLab
Browse files

Merge branch 'morefice/backport-drop-constraint-ci-deleted-objects' into '17-4-stable-ee'

Drop project_id not null constraint ci_deleted_objects

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/168156



Merged-by: default avatarMarius Bobin <mbobin@gitlab.com>
Approved-by: default avatarMarius Bobin <mbobin@gitlab.com>
Co-authored-by: default avatarMaxime Orefice <morefice@gitlab.com>
parents 63601574 e02a0c06
No related branches found
No related tags found
No related merge requests found
# frozen_string_literal: true
class DropNotNullToCiDeletedProjectId < Gitlab::Database::Migration[2.2]
milestone '17.4'
disable_ddl_transaction!
TABLE_NAME = :ci_deleted_objects
COLUMN_NAME = :project_id
def up
remove_not_null_constraint(TABLE_NAME, COLUMN_NAME)
end
def down
add_not_null_constraint(TABLE_NAME, COLUMN_NAME, validate: false)
end
end
7792d7833b32a800f3e3296e809487642411c354bc360b3ae580b22ce793fdb5
\ No newline at end of file
Loading
Loading
@@ -23411,9 +23411,6 @@ ALTER TABLE p_ci_pipeline_variables
ALTER TABLE ci_runners
ADD CONSTRAINT check_91230910ec CHECK ((char_length((name)::text) <= 256)) NOT VALID;
 
ALTER TABLE ci_deleted_objects
ADD CONSTRAINT check_98f90d6c53 CHECK ((project_id IS NOT NULL)) NOT VALID;
ALTER TABLE sprints
ADD CONSTRAINT check_ccd8a1eae0 CHECK ((start_date IS NOT NULL)) NOT VALID;
 
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment