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
bfc1cf06
Commit
bfc1cf06
authored
Jan 06, 2018
by
Robert Speicher
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-ce-migration-timestamp' into 'master'
Fix rebase commit SHA migration name See merge request gitlab-org/gitlab-ce!16256
parents
aa4a335f
15729025
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
7 deletions
+37
-7
20160621123729_add_rebase_commit_sha_to_merge_requests.rb
...20160621123729_add_rebase_commit_sha_to_merge_requests.rb
+22
-0
20171230123729_add_rebase_commit_sha_to_merge_requests.rb
...20171230123729_add_rebase_commit_sha_to_merge_requests.rb
+0
-7
20171230123729_add_rebase_commit_sha_to_merge_requests_ce.rb
...71230123729_add_rebase_commit_sha_to_merge_requests_ce.rb
+15
-0
No files found.
db/migrate/20160621123729_add_rebase_commit_sha_to_merge_requests.rb
0 → 100644
View file @
bfc1cf06
# 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
db/migrate/20171230123729_add_rebase_commit_sha_to_merge_requests.rb
deleted
100644 → 0
View file @
aa4a335f
class
AddRebaseCommitShaToMergeRequests
<
ActiveRecord
::
Migration
DOWNTIME
=
false
def
change
add_column
:merge_requests
,
:rebase_commit_sha
,
:string
end
end
db/migrate/20171230123729_add_rebase_commit_sha_to_merge_requests_ce.rb
0 → 100644
View file @
bfc1cf06
class
AddRebaseCommitShaToMergeRequestsCe
<
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