Move from column deployments.cluster_id to deployment_clusters table
In !24235 (merged) we added the table deployment_clusters
and started writing to it alongside the column deployments.cluster_id
.
In the a subsequent release (i.e. if %12.8 includes !24235 (merged), then in %12.9), we need to
In one release:
- migrate the old data over from
deployments.cluster_id
intodeployment_clusters
(withkubernetes_namespace = NULL
): !26841 (merged)
In a subsequent release:
- add an ignore for
deployments.cluster_id
and switch over all uses of that column todeployment_clusters
- clean up the background migration
- remove the temporary index
index_deployments_on_id_where_cluster_id_present
Edited by Hordur Freyr Yngvason