[Bug] Repair missing IMAP append claim-token column on upgraded databases #82

Open
opened 2026-07-29 00:19:23 +02:00 by zemion · 0 comments
Owner

Failure

An upgraded PostgreSQL database can be stamped at Campaign head while imap_append_attempts.claim_token is absent. Campaign workspace/report loading then fails with psycopg.errors.UndefinedColumn.

Repair

  • Add an idempotent forward repair migration after d8b3e2c1f4a5.
  • Preserve the column on downgrade because it belongs to the earlier claim migration.
  • Cover missing-column and repeated-upgrade behavior.
  • Verify the reported campaign/version workspace summary against PostgreSQL.

Implemented and verified locally; close after push.

<!-- codex-imap-claim-repair-2026-07-28 --> ## Failure An upgraded PostgreSQL database can be stamped at Campaign head while `imap_append_attempts.claim_token` is absent. Campaign workspace/report loading then fails with `psycopg.errors.UndefinedColumn`. ## Repair - Add an idempotent forward repair migration after `d8b3e2c1f4a5`. - Preserve the column on downgrade because it belongs to the earlier claim migration. - Cover missing-column and repeated-upgrade behavior. - Verify the reported campaign/version workspace summary against PostgreSQL. Implemented and verified locally; close after push.
zemion added the
type
bug
module/campaign
area/db
status
in-progress
priority
p1
labels 2026-07-29 00:19:23 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GovOPlaN/govoplan-campaign#82
No description provided.