AO3-7045 Migrate audits table to BIGINT#5384
Closed
alyssapowell wants to merge 1 commit intootwcode:masterfrom
Closed
AO3-7045 Migrate audits table to BIGINT#5384alyssapowell wants to merge 1 commit intootwcode:masterfrom
alyssapowell wants to merge 1 commit intootwcode:masterfrom
Conversation
Change audits.id from integer to bigint to prevent integer overflow as the audit log grows. This follows the established pattern for similar migrations in the codebase.
Contributor
|
The migration in this PR needs to be updated to be have a timestamp after 12 November 2025, as defined in the schema file: Line 13 in 1c45632 Please note that we may take over the code in this PR (with credit) because we are hoping to finish the bigint migrations soon and this PR has been stalled for a few months now. |
Member
|
Adopted in #5516 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
https://otwarchive.atlassian.net/browse/AO3-7045
Purpose
Migrates the audits table primary key from integer to BIGINT to prevent integer overflow as the audit log grows. This is a preventive infrastructure improvement to handle the increasing volume of audit records in the system.
Testing Instructions
rails db:migrateaudits.idcolumn is now BIGINT typeReferences
This follows the same pattern as recent similar migrations:
20250704060231_change_bookmark_foreign_keys_type.rb20250718220533_change_subscriptions_id_to_bigint.rbCredit
Alyssa Powell (she/her)