Context
0019_newsletter_approved_at.sql (from origin/chore/staging-ops-scripts, already applied to staging and present on prod out-of-band) is absorbed into the redesign at migration 0026 as:
ALTERTABLE newsletter_emails ADD COLUMN IF NOT EXISTS approved_at TIMESTAMPTZ;
The standalone migration file is now superseded by the redesign (the IF NOT EXISTS keeps it a safe no-op where the column already exists).
To verify (low risk — column name unchanged)
routes/admin.py allowlist endpoints (POST /api/admin/allowlist/approve and /revoke) still read/write newsletter_emails.approved_at correctly after the redesign. No code change expected.- Ensure the standalone
0019_newsletter_approved_at.sql is not also merged alongside the redesign (would be a duplicate migration filename / number with the redesign's 0019). Drop it from origin/chore/staging-ops-scripts before that branch merges, or confirm it's already applied-and-tracked everywhere.
Acceptance
- Allowlist approve/revoke work against the redesigned schema; no duplicate/conflicting newsletter migration reaches
main.
Refs: PR #264 · supersedes origin/chore/staging-ops-scripts:0019_newsletter_approved_at.sql.
Context
0019_newsletter_approved_at.sql(fromorigin/chore/staging-ops-scripts, already applied to staging and present on prod out-of-band) is absorbed into the redesign at migration0026as:The standalone migration file is now superseded by the redesign (the
IF NOT EXISTSkeeps it a safe no-op where the column already exists).To verify (low risk — column name unchanged)
routes/admin.pyallowlist endpoints (POST /api/admin/allowlist/approveand/revoke) still read/writenewsletter_emails.approved_atcorrectly after the redesign. No code change expected.0019_newsletter_approved_at.sqlis not also merged alongside the redesign (would be a duplicate migration filename / number with the redesign's0019). Drop it fromorigin/chore/staging-ops-scriptsbefore that branch merges, or confirm it's already applied-and-tracked everywhere.Acceptance
main.Refs: PR #264 · supersedes
origin/chore/staging-ops-scripts:0019_newsletter_approved_at.sql.