Migrate CI services
This commit is contained in:
parent
1b464bfe03
commit
df7d807d5a
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue