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
9ca49f88
Commit
9ca49f88
authored
Jan 05, 2018
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rebase commit SHA migration name
This already existed in EE with a different timestamp, so rename for CE and make it idempotent.
parent
3d162d19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
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/20171230123729_add_rebase_commit_sha_to_merge_requests.rb
deleted
100644 → 0
View file @
3d162d19
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 @
9ca49f88
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