summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-03-16 19:00:02 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-03-16 19:00:02 +0800
commite64cb65a4d8cd36532a620a7aa2218afe2ac4eb4 (patch)
tree82b997046dea3aa09ef78b6b985f26177ddb2bdd
parent811dec944ef0af163c80a65138421251ba13b5bc (diff)
downloadgitlab-ce-migrate-pipeline-events-and-email-service.tar.gz
Rename build -> build_service; pipeline -> pipeline_servicemigrate-pipeline-events-and-email-service
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/commit/6aeebabe431d1351d7379cd6c7fc113fe15f5d60#note_25496867
-rw-r--r--db/post_migrate/20170301205640_migrate_build_events_to_pipeline_events.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/db/post_migrate/20170301205640_migrate_build_events_to_pipeline_events.rb b/db/post_migrate/20170301205640_migrate_build_events_to_pipeline_events.rb
index 16a1bf06a91..2dd14ee5a78 100644
--- a/db/post_migrate/20170301205640_migrate_build_events_to_pipeline_events.rb
+++ b/db/post_migrate/20170301205640_migrate_build_events_to_pipeline_events.rb
@@ -69,18 +69,18 @@ class MigrateBuildEventsToPipelineEvents < ActiveRecord::Migration
SQL
else
<<-SQL
- UPDATE services build
- LEFT OUTER JOIN services pipeline
- ON build.project_id = pipeline.project_id
- AND pipeline.type = 'PipelinesEmailService'
- SET build.type = 'PipelinesEmailService'
- , build.properties = replace(build.properties,
+ UPDATE services build_services
+ LEFT OUTER JOIN services pipeline_services
+ ON build_services.project_id = pipeline_services.project_id
+ AND pipeline_services.type = 'PipelinesEmailService'
+ SET build_services.type = 'PipelinesEmailService'
+ , build_services.properties = replace(build_services.properties,
'notify_only_broken_builds',
'notify_only_broken_pipelines')
- , build.pipeline_events = #{true_value}
- , build.build_events = #{false_value}
- WHERE build.type = 'BuildsEmailService'
- AND pipeline.id IS NULL;
+ , build_services.pipeline_events = #{true_value}
+ , build_services.build_events = #{false_value}
+ WHERE build_services.type = 'BuildsEmailService'
+ AND pipeline_services.id IS NULL;
SQL
end.strip_heredoc
end