Ensure that all tables that reference ci_stages have partition_id column
We need to check and update(if needed) all the tables that reference ci_stages
for:
-
- Determine referencing tables \d+ ci_stages
-
- They have a partition_id
column for each FK -
- the partition_id
column is correctly populated with an appropriate value
Currently only these table reference ci_stages
:
gitlabhq_development=# \d+ ci_stages
...
Referenced by:
TABLE "p_ci_builds" CONSTRAINT "fk_3a9eaa254d" FOREIGN KEY (stage_id) REFERENCES ci_stages(id) ON DELETE CASCADE
Edited by Panos Kanellidis