Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
cc442d0d
Commit
cc442d0d
authored
Feb 22, 2022
by
Steven Van der Jeugt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove null constraint from security_scan_succeeded column
Changelog: changed
parent
d77932f3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
db/post_migrate/20220222191845_remove_not_null_constraint_for_security_scan_succeeded.rb
...remove_not_null_constraint_for_security_scan_succeeded.rb
+11
-0
db/schema_migrations/20220222191845
db/schema_migrations/20220222191845
+1
-0
db/structure.sql
db/structure.sql
+1
-1
No files found.
db/post_migrate/20220222191845_remove_not_null_constraint_for_security_scan_succeeded.rb
0 → 100644
View file @
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
db/schema_migrations/20220222191845
0 → 100644
View file @
cc442d0d
c528d64cafc072554cd1ef1006a1c359a3135896abae2d5ca20fbbc99ff14f8c
\ No newline at end of file
db/structure.sql
View file @
cc442d0d
...
...
@@ -10191,7 +10191,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,
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment