Commit 8394c7c7 authored by pbair's avatar pbair

Add migration to cleanup audit_events backfill

Add post deployment migration that will clean up any incomplete jobs
from the partitioned audit_events backfill migration, and copy any
missing data.
parent eda668d5
---
title: Migration to cleanup after partitioned audit_events backfill
merge_request: 41605
author:
type: added
# frozen_string_literal: true
class BackfillCleanupForPartitionedAuditEvents < ActiveRecord::Migration[6.0]
include Gitlab::Database::PartitioningMigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
finalize_backfilling_partitioned_table :audit_events
end
def down
# no op
end
end
739a4d5374ae2be419c5a2f8c1427f85a0b76c90233918b7b43f1c166ab06cec
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment