diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-16 01:43:04 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-16 01:43:04 +0300 |
commit | df7d807d5a4e26efc78516459c04be286d6624c9 (patch) | |
tree | 9c7c88a0665813c6713fabb8b9b423c438cc713f /lib/tasks | |
parent | 1b464bfe03be2f05f509a96740a9f9d024e8217d (diff) |
Migrate CI services
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/ci/migrate.rake | 7 |
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 |