Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-09-16 01:43:04 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2015-09-16 01:43:04 +0300
commitdf7d807d5a4e26efc78516459c04be286d6624c9 (patch)
tree9c7c88a0665813c6713fabb8b9b423c438cc713f /lib/tasks
parent1b464bfe03be2f05f509a96740a9f9d024e8217d (diff)
Migrate CI services
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/ci/migrate.rake7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tasks/ci/migrate.rake b/lib/tasks/ci/migrate.rake
index 2760c503e22..2bbcd0f578c 100644
--- a/lib/tasks/ci/migrate.rake
+++ b/lib/tasks/ci/migrate.rake
@@ -11,6 +11,7 @@ namespace :ci do
Rake::Task["ci:migrate:db"].invoke
Rake::Task["ci:migrate:autoincrements"].invoke
Rake::Task["ci:migrate:tags"].invoke
+ Rake::Task["ci:migrate:services"].invoke
end
namespace :migrate do
@@ -52,5 +53,11 @@ namespace :ci do
end
end
end
+
+ desc 'GitLab | Migrate CI services'
+ task services: :environment do
+ c = ActiveRecord::Base.connection
+ c.execute("UPDATE ci_services SET type=CONCAT('Ci::'', type) WHERE type NOT LIKE 'Ci::%'")
+ end
end
end