Skip to content

Finalize backfill migration for environment tier population

Bala Kumar requested to merge 385253-cleanup-batched-migration into master

What does this MR do and why?

Finalize the backfill migration which was introduced from !105998 (diffs) in %15.8

We have already verified that the migration has completed on gitlab.com and there are zero records with tier value as null on the environments table.

Related to #385253 (closed) and we have another MR next to validate tier for all actions instead of on: :create.

Database

See !110796 (comment 1263439078) for DB testing.

Up

> bundle exec rake db:migrate VERSION=20230201171450

main: == 20230201171450 FinalizeBackfillEnvironmentTierMigration: migrating ==========
main: == 20230201171450 FinalizeBackfillEnvironmentTierMigration: migrated (0.0335s) =

ci: == 20230201171450 FinalizeBackfillEnvironmentTierMigration: migrating ==========
ci: -- The migration is skipped since it modifies the schemas: [:gitlab_main].
ci: -- This database can only apply migrations in one of the following schemas: [:gitlab_ci, :gitlab_shared, :gitlab_internal].
ci: == 20230201171450 FinalizeBackfillEnvironmentTierMigration: migrated (0.0163s) =

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Bala Kumar

Merge request reports