Commit df7d807d authored by Kamil Trzcinski's avatar Kamil Trzcinski

Migrate CI services

parent 1b464bfe
...@@ -11,6 +11,7 @@ namespace :ci do ...@@ -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 ...@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment