BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
15729025
Commit
15729025
authored
Jan 05, 2018
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the EE `rebase_commit_sha` migration back in its original location
parent
9ca49f88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
20160621123729_add_rebase_commit_sha_to_merge_requests.rb
...20160621123729_add_rebase_commit_sha_to_merge_requests.rb
+22
-0
No files found.
db/migrate/20160621123729_add_rebase_commit_sha_to_merge_requests.rb
0 → 100644
View file @
15729025
# This migration is a duplicate of 20171230123729_add_rebase_commit_sha_to_merge_requests_ce.rb
#
# We backported this feature from EE using the same migration, but with a new
# timestamp, which caused an error when the backport was then to be merged back
# into EE.
#
# See discussion at https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3932
class
AddRebaseCommitShaToMergeRequests
<
ActiveRecord
::
Migration
DOWNTIME
=
false
def
up
unless
column_exists?
(
:merge_requests
,
:rebase_commit_sha
)
add_column
:merge_requests
,
:rebase_commit_sha
,
:string
end
end
def
down
if
column_exists?
(
:merge_requests
,
:rebase_commit_sha
)
remove_column
:merge_requests
,
:rebase_commit_sha
end
end
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