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
253b61d2
Commit
253b61d2
authored
Mar 15, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-migration-rc1-rollback' into 'master'
Fixing two migrations that could not be rolled back See merge request !9953
parents
8fddde5b
fbbaff4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
20170216141440_drop_index_for_builds_project_status.rb
...te/20170216141440_drop_index_for_builds_project_status.rb
+1
-1
20170305203726_add_owner_id_foreign_key.rb
db/migrate/20170305203726_add_owner_id_foreign_key.rb
+5
-1
No files found.
db/migrate/20170216141440_drop_index_for_builds_project_status.rb
View file @
253b61d2
...
...
@@ -3,6 +3,6 @@ class DropIndexForBuildsProjectStatus < ActiveRecord::Migration
DOWNTIME
=
false
def
change
remove_index
(
:ci_commits
,
[
:gl_project_id
,
:status
])
remove_index
(
:ci_commits
,
column:
[
:gl_project_id
,
:status
])
end
end
db/migrate/20170305203726_add_owner_id_foreign_key.rb
View file @
253b61d2
...
...
@@ -5,7 +5,11 @@ class AddOwnerIdForeignKey < ActiveRecord::Migration
disable_ddl_transaction!
def
change
def
up
add_concurrent_foreign_key
:ci_triggers
,
:users
,
column: :owner_id
,
on_delete: :cascade
end
def
down
remove_foreign_key
:ci_triggers
,
column: :owner_id
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