Skip to content

Regenerate test database dump without api_apitoken.is_active - #1428

Merged
rowanseymour merged 1 commit into
mainfrom
rowan/regen-dump-apitoken
Nov 25, 2026
Merged

rowanseymour merged 1 commit into
mainfrom
rowan/regen-dump-apitoken

Conversation

@rowanseymour

Copy link
Copy Markdown
Member

Summary

Regenerates the test database dump from the current schema, which drops api_apitoken.is_active now that API token revocation is recorded in deleted_on.

Mailroom doesn't read api_apitoken, so no code changes are needed.

Test plan

  • go test ./... passes against the new dump (CI)

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I restored the old and new dumps with pg_restore and diffed them, ignoring timestamps and serial IDs. The real changes are:

  • api_apitoken.is_active is dropped from the table definition and its COPY column list.
  • Two new django_migrations rows: api.0057_remove_apitoken_is_active and api.0058_drop_apitoken_is_active.

Everything else is noise from regenerating the dump: new timestamps and renumbered serial IDs on django_migrations and contacts_contactgroup_contacts. Apart from the two new rows, the set of migrations is the same, and group memberships match once IDs are ignored. No other schema drift came in.

Nothing in the Go code or SQL refers to api_apitoken, so dropping the column can't break mailroom. (The is_active in testsuite/testdb/llms.go is on ai_llm, which is a different table.)

No issues found. LGTM once CI passes.

@rowanseymour
rowanseymour merged commit 00c000b into main Nov 25, 2026
4 checks passed
@rowanseymour
rowanseymour deleted the rowan/regen-dump-apitoken branch November 25, 2026 15:21
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant