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
8a75797e
Commit
8a75797e
authored
Nov 02, 2020
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Truncate security_findings table
parent
e3983e8a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
db/post_migrate/20201102152945_truncate_security_findings_table.rb
...igrate/20201102152945_truncate_security_findings_table.rb
+19
-0
db/schema_migrations/20201102152945
db/schema_migrations/20201102152945
+1
-0
No files found.
db/post_migrate/20201102152945_truncate_security_findings_table.rb
0 → 100644
View file @
8a75797e
# frozen_string_literal: true
class
TruncateSecurityFindingsTable
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
with_lock_retries
do
connection
.
execute
(
'TRUNCATE security_findings RESTART IDENTITY'
)
end
end
def
down
# no-op
end
end
db/schema_migrations/20201102152945
0 → 100644
View file @
8a75797e
55ffd18d5f55ee0fd51a31d50cf2d51595740c72ca23d5134d93e2da3fc186ff
\ No newline at end of file
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