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
04d2f674
Commit
04d2f674
authored
Nov 03, 2020
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Truncate `security_findings` table only for dev and Gitlab.com
parent
e2dcf31b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
db/post_migrate/20201102152945_truncate_security_findings_table.rb
...igrate/20201102152945_truncate_security_findings_table.rb
+2
-0
No files found.
db/post_migrate/20201102152945_truncate_security_findings_table.rb
View file @
04d2f674
...
...
@@ -8,6 +8,8 @@ class TruncateSecurityFindingsTable < ActiveRecord::Migration[6.0]
disable_ddl_transaction!
def
up
return
unless
Gitlab
.
dev_env_or_com?
with_lock_retries
do
connection
.
execute
(
'TRUNCATE security_findings RESTART IDENTITY'
)
end
...
...
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