diff --git a/db/docs/batched_background_migrations/backfill_google_group_audit_event_destinations_fixed.yml b/db/docs/batched_background_migrations/backfill_google_group_audit_event_destinations_fixed.yml index 928c4fa5c3c33b4afd07a40dabad691d90a7e469..572d13eb268ca842521d9b5aefb7984e560cc392 100644 --- a/db/docs/batched_background_migrations/backfill_google_group_audit_event_destinations_fixed.yml +++ b/db/docs/batched_background_migrations/backfill_google_group_audit_event_destinations_fixed.yml @@ -5,4 +5,4 @@ feature_category: audit_events introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/186866 milestone: '18.0' queued_migration_version: 20250403155756 -finalized_by: # version of the migration that finalized this BBM +finalized_by: '20250914232332' diff --git a/db/post_migrate/20250914232332_finalize_hk_backfill_google_group_audit_event_destinations_fixed.rb b/db/post_migrate/20250914232332_finalize_hk_backfill_google_group_audit_event_destinations_fixed.rb new file mode 100644 index 0000000000000000000000000000000000000000..3399a47e0585b4e75ba70e111081cd9663ccd456 --- /dev/null +++ b/db/post_migrate/20250914232332_finalize_hk_backfill_google_group_audit_event_destinations_fixed.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +class FinalizeHkBackfillGoogleGroupAuditEventDestinationsFixed < Gitlab::Database::Migration[2.3] + milestone '18.4' + + disable_ddl_transaction! + + restrict_gitlab_migration gitlab_schema: :gitlab_main + + def up + ensure_batched_background_migration_is_finished( + job_class_name: 'BackfillGoogleGroupAuditEventDestinationsFixed', + table_name: :audit_events_google_cloud_logging_configurations, + column_name: :id, + job_arguments: [], + finalize: true + ) + end + + def down; end +end diff --git a/db/schema_migrations/20250914232332 b/db/schema_migrations/20250914232332 new file mode 100644 index 0000000000000000000000000000000000000000..376e17c3ea0bde9ddc37e8b69ce8dcbbfb2b1b1c --- /dev/null +++ b/db/schema_migrations/20250914232332 @@ -0,0 +1 @@ +746a3db5c2b61af1f30248098ac1f75f7cf6b44b31cfb92bdf4752da9773c359 \ No newline at end of file