Commit 76141b84 authored by Luke Duncalfe's avatar Luke Duncalfe

Merge branch 'remove_not_null_constraint_for_security_scan_succeeded' into 'master'

Remove null constraint from security_scan_succeeded column

See merge request gitlab-org/gitlab!81322
parents 72437261 cc442d0d
# frozen_string_literal: true
class RemoveNotNullConstraintForSecurityScanSucceeded < Gitlab::Database::Migration[1.0]
def up
change_column_null :analytics_devops_adoption_snapshots, :security_scan_succeeded, true
end
def down
# There may now be nulls in the table, so we cannot re-add the constraint here.
end
end
c528d64cafc072554cd1ef1006a1c359a3135896abae2d5ca20fbbc99ff14f8c
\ No newline at end of file
......@@ -10776,7 +10776,7 @@ CREATE TABLE analytics_devops_adoption_snapshots (
runner_configured boolean NOT NULL,
pipeline_succeeded boolean NOT NULL,
deploy_succeeded boolean NOT NULL,
security_scan_succeeded boolean NOT NULL,
security_scan_succeeded boolean,
end_time timestamp with time zone NOT NULL,
total_projects_count integer,
code_owners_used_count integer,
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment