Skip to content

Use force: cascade to drop dependent objects on deprecated ci_services table

Stan Hu requested to merge sh-fix-ci-service-cascade into master

From gitlab-org/gitlab-ce#22298:

PG::DependentObjectsStillExist: ERROR:  cannot drop table ci_services because other objects depend on it
DETAIL:  default for table services column id depends on sequence services_id_seq
HINT:  Use DROP ... CASCADE to drop the dependent objects too

This can happen if entries in other tables still depend on ci_services.

Merge request reports