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
0
Merge Requests
0
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
Jérome Perrin
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
db/migrate/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