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
71be85d3
Commit
71be85d3
authored
Jul 19, 2021
by
Michał Zając
Committed by
Tiger Watson
Jul 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add detected_at to Vulnerabilities table
parent
05ea31d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
db/migrate/20210714120600_add_detected_at_to_vulnerabilities.rb
...rate/20210714120600_add_detected_at_to_vulnerabilities.rb
+18
-0
db/schema_migrations/20210714120600
db/schema_migrations/20210714120600
+1
-0
db/structure.sql
db/structure.sql
+2
-1
No files found.
db/migrate/20210714120600_add_detected_at_to_vulnerabilities.rb
0 → 100644
View file @
71be85d3
# frozen_string_literal: true
class
AddDetectedAtToVulnerabilities
<
ActiveRecord
::
Migration
[
6.1
]
include
Gitlab
::
Database
::
MigrationHelpers
def
up
with_lock_retries
do
add_column
:vulnerabilities
,
:detected_at
,
:datetime_with_timezone
change_column_default
:vulnerabilities
,
:detected_at
,
->
{
'NOW()'
}
end
end
def
down
with_lock_retries
do
remove_column
:vulnerabilities
,
:detected_at
end
end
end
db/schema_migrations/20210714120600
0 → 100644
View file @
71be85d3
de9167bc4f9e2b68b257a7ff81636d5dbb6d73ff81672fdf1c73adadf5707bea
\ No newline at end of file
db/structure.sql
View file @
71be85d3
...
...
@@ -19046,7 +19046,8 @@ CREATE TABLE vulnerabilities (
dismissed_at timestamp with time zone,
dismissed_by_id bigint,
resolved_on_default_branch boolean DEFAULT false NOT NULL,
present_on_default_branch boolean DEFAULT true NOT NULL
present_on_default_branch boolean DEFAULT true NOT NULL,
detected_at timestamp with time zone DEFAULT now()
);
CREATE SEQUENCE vulnerabilities_id_seq
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