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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
1a21bb78
Commit
1a21bb78
authored
May 06, 2017
by
Gabriel Mazetto
Committed by
Robert Speicher
May 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix migration for MySQL compatibility
parent
a2352c02
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
db/migrate/20170505133904_update_geo_nodes_system_hooks.rb
db/migrate/20170505133904_update_geo_nodes_system_hooks.rb
+2
-2
No files found.
db/migrate/20170505133904_update_geo_nodes_system_hooks.rb
View file @
1a21bb78
...
...
@@ -11,7 +11,7 @@ class UpdateGeoNodesSystemHooks < ActiveRecord::Migration
tag_push_events:
false
,
repository_update_events:
true
}
SystemHook
.
joins
(
'INNER JOIN
"geo_nodes" ON "geo_nodes".system_hook_id = "web_hooks"
.id'
).
update_all
(
attrs
)
SystemHook
.
joins
(
'INNER JOIN
geo_nodes ON geo_nodes.system_hook_id = web_hooks
.id'
).
update_all
(
attrs
)
end
def
down
...
...
@@ -20,6 +20,6 @@ class UpdateGeoNodesSystemHooks < ActiveRecord::Migration
tag_push_events:
true
,
repository_update_events:
false
}
SystemHook
.
joins
(
'INNER JOIN
"geo_nodes" ON "geo_nodes".system_hook_id = "web_hooks"
.id'
).
update_all
(
attrs
)
SystemHook
.
joins
(
'INNER JOIN
geo_nodes ON geo_nodes.system_hook_id = web_hooks
.id'
).
update_all
(
attrs
)
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