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
86b5340b
Commit
86b5340b
authored
Feb 26, 2020
by
Michał Zając
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename closed_by to dismissed_by in vulnerabilites
parent
fee7c350
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
4 deletions
+38
-4
db/migrate/20200226162634_rename_closed_by_to_dismissed_by_in_vulnerabilities.rb
...34_rename_closed_by_to_dismissed_by_in_vulnerabilities.rb
+17
-0
db/post_migrate/20200226162723_cleanup_closed_by_rename_in_vulnerabilities.rb
...0226162723_cleanup_closed_by_rename_in_vulnerabilities.rb
+17
-0
db/schema.rb
db/schema.rb
+4
-4
No files found.
db/migrate/20200226162634_rename_closed_by_to_dismissed_by_in_vulnerabilities.rb
0 → 100644
View file @
86b5340b
# frozen_string_literal: true
class
RenameClosedByToDismissedByInVulnerabilities
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
rename_column_concurrently
:vulnerabilities
,
:closed_by_id
,
:dismissed_by_id
end
def
down
undo_rename_column_concurrently
:vulnerabilities
,
:closed_by_id
,
:dismissed_by_id
end
end
db/post_migrate/20200226162723_cleanup_closed_by_rename_in_vulnerabilities.rb
0 → 100644
View file @
86b5340b
# frozen_string_literal: true
class
CleanupClosedByRenameInVulnerabilities
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
cleanup_concurrent_column_rename
:vulnerabilities
,
:closed_by_id
,
:dismissed_by_id
end
def
down
undo_cleanup_concurrent_column_rename
:vulnerabilities
,
:closed_by_id
,
:dismissed_by_id
end
end
db/schema.rb
View file @
86b5340b
...
...
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2020_02_26_162
239
)
do
ActiveRecord
::
Schema
.
define
(
version:
2020_02_26_162
723
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"pg_trgm"
...
...
@@ -4355,7 +4355,6 @@ ActiveRecord::Schema.define(version: 2020_02_26_162239) do
t
.
text
"description_html"
t
.
bigint
"start_date_sourcing_milestone_id"
t
.
bigint
"due_date_sourcing_milestone_id"
t
.
bigint
"closed_by_id"
t
.
integer
"state"
,
limit:
2
,
default:
1
,
null:
false
t
.
integer
"severity"
,
limit:
2
,
null:
false
t
.
boolean
"severity_overridden"
,
default:
false
...
...
@@ -4368,9 +4367,10 @@ ActiveRecord::Schema.define(version: 2020_02_26_162239) do
t
.
bigint
"confirmed_by_id"
t
.
datetime_with_timezone
"confirmed_at"
t
.
datetime_with_timezone
"dismissed_at"
t
.
bigint
"dismissed_by_id"
t
.
index
[
"author_id"
],
name:
"index_vulnerabilities_on_author_id"
t
.
index
[
"closed_by_id"
],
name:
"index_vulnerabilities_on_closed_by_id"
t
.
index
[
"confirmed_by_id"
],
name:
"index_vulnerabilities_on_confirmed_by_id"
t
.
index
[
"dismissed_by_id"
],
name:
"index_vulnerabilities_on_dismissed_by_id"
t
.
index
[
"due_date_sourcing_milestone_id"
],
name:
"index_vulnerabilities_on_due_date_sourcing_milestone_id"
t
.
index
[
"epic_id"
],
name:
"index_vulnerabilities_on_epic_id"
t
.
index
[
"last_edited_by_id"
],
name:
"index_vulnerabilities_on_last_edited_by_id"
...
...
@@ -5025,8 +5025,8 @@ ActiveRecord::Schema.define(version: 2020_02_26_162239) do
add_foreign_key
"vulnerabilities"
,
"milestones"
,
name:
"fk_131d289c65"
,
on_delete: :nullify
add_foreign_key
"vulnerabilities"
,
"projects"
,
name:
"fk_efb96ab1e2"
,
on_delete: :cascade
add_foreign_key
"vulnerabilities"
,
"users"
,
column:
"author_id"
,
name:
"fk_b1de915a15"
,
on_delete: :nullify
add_foreign_key
"vulnerabilities"
,
"users"
,
column:
"closed_by_id"
,
name:
"fk_cf5c60acbf"
,
on_delete: :nullify
add_foreign_key
"vulnerabilities"
,
"users"
,
column:
"confirmed_by_id"
,
name:
"fk_959d40ad0a"
,
on_delete: :nullify
add_foreign_key
"vulnerabilities"
,
"users"
,
column:
"dismissed_by_id"
,
name:
"fk_725465b774"
,
on_delete: :nullify
add_foreign_key
"vulnerabilities"
,
"users"
,
column:
"last_edited_by_id"
,
name:
"fk_1302949740"
,
on_delete: :nullify
add_foreign_key
"vulnerabilities"
,
"users"
,
column:
"resolved_by_id"
,
name:
"fk_76bc5f5455"
,
on_delete: :nullify
add_foreign_key
"vulnerabilities"
,
"users"
,
column:
"updated_by_id"
,
name:
"fk_7ac31eacb9"
,
on_delete: :nullify
...
...
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