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
4ee665e0
Commit
4ee665e0
authored
Mar 02, 2020
by
Jarka Košanová
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove health_status column from epics
parent
19d49f1e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletion
+25
-1
db/post_migrate/20200226124757_remove_health_status_from_epics.rb
...migrate/20200226124757_remove_health_status_from_epics.rb
+19
-0
db/structure.sql
db/structure.sql
+1
-1
remove-health-status-epic.yml
remove-health-status-epic.yml
+5
-0
No files found.
db/post_migrate/20200226124757_remove_health_status_from_epics.rb
0 → 100644
View file @
4ee665e0
# frozen_string_literal: true
class
RemoveHealthStatusFromEpics
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
with_lock_retries
do
remove_column
:epics
,
:health_status
end
end
def
down
with_lock_retries
do
add_column
:epics
,
:health_status
,
:integer
,
limit:
2
end
end
end
db/structure.sql
View file @
4ee665e0
...
...
@@ -2270,7 +2270,6 @@ CREATE TABLE public.epics (
state_id
smallint
DEFAULT
1
NOT
NULL
,
start_date_sourcing_epic_id
integer
,
due_date_sourcing_epic_id
integer
,
health_status
smallint
,
external_key
character
varying
(
255
)
);
...
...
@@ -12764,6 +12763,7 @@ COPY "schema_migrations" (version) FROM STDIN;
20200226100614
20200226100624
20200226100634
20200226124757
20200226162156
20200226162239
20200226162634
...
...
remove-health-status-epic.yml
0 → 100644
View file @
4ee665e0
---
title
:
Remove health_status column from epics
merge_request
:
26302
author
:
type
:
other
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