Swap primary key for ci_stages
Swap the primary key including the partitioning key column. This can be done only after including the partition key for all references foreign keys.
https://docs.gitlab.com/ee/development/database/partitioning/list.html#step-5---swap-primary-key
Edited by Max Orefice