Migrate CI services

This commit is contained in:
Kamil Trzcinski 2015-09-16 00:43:04 +02:00
parent 1b464bfe03
commit df7d807d5a

View file

@ -11,6 +11,7 @@ namespace :ci do
Rake::Task["ci:migrate:db"].invoke Rake::Task["ci:migrate:db"].invoke
Rake::Task["ci:migrate:autoincrements"].invoke Rake::Task["ci:migrate:autoincrements"].invoke
Rake::Task["ci:migrate:tags"].invoke Rake::Task["ci:migrate:tags"].invoke
Rake::Task["ci:migrate:services"].invoke
end end
namespace :migrate do namespace :migrate do
@ -52,5 +53,11 @@ namespace :ci do
end end
end 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
end end