diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-12-14 11:04:47 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-12-14 11:30:32 +0100 |
commit | a0c2a7b0cbb4567a1f09c4cbc400bf75df47a072 (patch) | |
tree | 4e5489aa993e67889591dfe6b69b071836a1179e /db/migrate/20151209144329_migrate_ci_web_hooks.rb | |
parent | 8b4cdc50fca816b4f56f8579e17c4dba836ec797 (diff) | |
download | gitlab-ce-a0c2a7b0cbb4567a1f09c4cbc400bf75df47a072.tar.gz |
Fix migrations [ci skip]
Diffstat (limited to 'db/migrate/20151209144329_migrate_ci_web_hooks.rb')
-rw-r--r-- | db/migrate/20151209144329_migrate_ci_web_hooks.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/db/migrate/20151209144329_migrate_ci_web_hooks.rb b/db/migrate/20151209144329_migrate_ci_web_hooks.rb index 0293be3f6ce..825ba1973ff 100644 --- a/db/migrate/20151209144329_migrate_ci_web_hooks.rb +++ b/db/migrate/20151209144329_migrate_ci_web_hooks.rb @@ -3,8 +3,9 @@ class MigrateCiWebHooks < ActiveRecord::Migration def up execute( - 'INSERT INTO web_hooks (url, project_id, type, created_at, updated_at, push_events, build_events) ' \ - "SELECT ci_web_hooks.url, projects.id, 'ProjectHook', ci_web_hooks.created_at, ci_web_hooks.updated_at, #{false_value}, #{true_value} FROM ci_web_hooks " \ + 'INSERT INTO web_hooks (url, project_id, type, created_at, updated_at, push_events, issues_events, merge_requests_events, tag_push_events, note_events, build_events) ' \ + "SELECT ci_web_hooks.url, projects.id, 'ProjectHook', ci_web_hooks.created_at, ci_web_hooks.updated_at, " \ + "#{false_value}, #{false_value}, #{false_value}, #{false_value}, #{false_value}, #{true_value} FROM ci_web_hooks " \ 'JOIN ci_projects ON ci_web_hooks.project_id = ci_projects.id ' \ 'JOIN projects ON ci_projects.gitlab_id = projects.id' ) |