Skip to content

chore(db): drop the invite_code and waitlist tables - #208

Merged
ryuzdev merged 1 commit into
mainfrom
chore/drop-invite-waitlist-tables
Dec 1, 2026
Merged

ryuzdev merged 1 commit into
mainfrom
chore/drop-invite-waitlist-tables

Conversation

@ryuzdev

@ryuzdev ryuzdev commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Owner approved (2026-12-01) deleting the invite-code and waitlist data left unused by #207. Migration 0008 drops invite_code (+ invite_code_createdBy), waitlist, and verification.inviteCode. Nothing references them (no FKs, no code). Checks: cargo fmt; cargo test -p outer --lib -- db:: auth:: 72 pass (runs the full migration chain); dry-run on a copy of the prod DB on the host: both tables already empty, objects gone, integrity_check ok. The release files a pre-release state copy before migrating.

Summary by CodeRabbit

  • Changes
    • Open-signup invite codes and the waitlist have been retired. Related invite-code and waitlist records, along with invite-code details in verification records, are no longer retained. These signup options are no longer available.

- Migration 0008 drops invite_code (+ index), waitlist and verification.inviteCode; unused since #207, owner approved deleting the data.
- Dry-run on a copy of the prod database: both tables were already empty; integrity_check ok.
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

This migration removes the invite-code index, the invite_code and waitlist tables, and the verification.inviteCode column. Its comments document approval to delete the data and retention of a pre-release state copy.

Changes: Invite and waitlist retirement

Layer / File(s) Summary
Remove invite and waitlist schema
crates/outer/migrations/0008_drop_invites_waitlist.sql
The migration drops the invite-code index and related tables, then removes verification.inviteCode. Comments state that the data is approved for deletion and a pre-release state copy retains the last snapshot.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Possibly related PRs

  • ryuzcorp/outer#150: Replaces the control-DB migration chain with a squashed schema, which affects the baseline that this migration extends.
Merge Risk: Minimal · up to 5a585

This migration removes the unused invite-code and waitlist schema after the code that used it was already removed. The data is reported empty and approved for deletion, and a pre-release state copy is retained. No remaining merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: a migration that drops the invite_code and waitlist tables. The raw summary confirms migration 0008 drops the invite_code_createdBy index, the invite_code and waitlist…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: a migration that drops the invite_code and waitlist tables. The raw summary confirms migration 0008 drops the invite_code_createdBy index, the invite_code and waitlist tables, and the inviteCode column on verification. The title uses a conventional commit prefix (chore(db)), which fits a database migration. It omits the verification.inviteCode column removal, but that detail is secondary to the title's main point.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e36d0d47-104e-4d90-9206-208c976d921e
Commits

Reviewing files that changed from the base of the PR and between 9e65f92 and 5a585d5.

Files selected for processing: 1

  • crates/outer/migrations/0008_drop_invites_waitlist.sql

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@ryuzdev
ryuzdev merged commit 3a8dbbe into main Dec 1, 2026
5 checks passed
@ryuzdev
ryuzdev deleted the chore/drop-invite-waitlist-tables branch December 1, 2026 06:52
ryuzdev added a commit that referenced this pull request Dec 1, 2026
- sqlx::migrate! embeds migrations/ at compile time but cargo doesn't track the directory, so the release builder's cached target reused a binary without 0008 (#208 released, prod stayed at migration 7).
- build.rs emits rerun-if-changed=migrations; verified: touching only a migration file recompiles outer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant