-
- Downloads
There was an error fetching the commit references. Please try again later.
Add migration to swap partitioned audit_events
Add a new migration to swap the partitioned audit_events with the original table. In preparation for this, also add a prior migration to recreate the secondary indexes on the partitioned table.
Showing
- app/models/audit_event.rb 3 additions, 0 deletionsapp/models/audit_event.rb
- app/models/audit_event_archived.rb 10 additions, 0 deletionsapp/models/audit_event_archived.rb
- app/models/audit_event_partitioned.rb 0 additions, 14 deletionsapp/models/audit_event_partitioned.rb
- changelogs/unreleased/241267-swap-audit-events-migration.yml 5 additions, 0 deletionschangelogs/unreleased/241267-swap-audit-events-migration.yml
- config/initializers/postgres_partitioning.rb 1 addition, 1 deletionconfig/initializers/postgres_partitioning.rb
- db/migrate/20201112215132_swap_partitioned_audit_events.rb 15 additions, 0 deletionsdb/migrate/20201112215132_swap_partitioned_audit_events.rb
- db/schema_migrations/20201112215132 1 addition, 0 deletionsdb/schema_migrations/20201112215132
- db/structure.sql 19 additions, 19 deletionsdb/structure.sql
- spec/db/schema_spec.rb 1 addition, 1 deletionspec/db/schema_spec.rb
- spec/lib/gitlab/database/partitioning_migration_helpers/table_management_helpers_spec.rb 68 additions, 65 deletions...ioning_migration_helpers/table_management_helpers_spec.rb
- spec/models/audit_event_archived_spec.rb 10 additions, 10 deletionsspec/models/audit_event_archived_spec.rb
app/models/audit_event_archived.rb
0 → 100644
db/schema_migrations/20201112215132
0 → 100644
Please register or sign in to comment