Skip to content

chore(db): drop dead tables (product_pages, matches) — schema cleanup Phase 1#8

Open
StockerMC wants to merge 1 commit into
mainfrom
chore/db-drop-dead-tables
Open

chore(db): drop dead tables (product_pages, matches) — schema cleanup Phase 1#8
StockerMC wants to merge 1 commit into
mainfrom
chore/db-drop-dead-tables

Conversation

@StockerMC
Copy link
Copy Markdown
Owner

Summary

Phase 1 of the schema cleanup proposed in docs/schema-redesign.md (PR #7). Drops the two confirmed-dead tables — already applied to the live DB.

Table Rows Inbound FKs Code refs Why dead
product_pages 0 0 none superseded by youtube_shorts as the public showcase page
matches 0 0 none (only a coincidental dict key) v1 matching pipeline, replaced by product_creator_matches

Verified empty + FK-free immediately before dropping. Migration file: backend/data/drop_dead_tables.sql (idempotent, IF EXISTS).

The match_status enum is intentionally left in place (harmless).

Depends on / pairs with #7 (the schema doc + annotated snapshot). Phases 2–4 (retire v2 pipeline, consolidate merchant/creator identity, move worker tables out of public) remain proposals only.

Phase 1 of the schema cleanup in docs/schema-redesign.md. Both tables had
0 rows, 0 inbound foreign keys, and no references in frontend or backend code:
- product_pages: superseded by youtube_shorts; referenced nowhere
- matches: v1 matching pipeline, replaced by product_creator_matches

Verified empty + FK-free before dropping. Applied to the live DB via migration.
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
maatchaa Ready Ready Preview, Comment May 31, 2026 8:49pm

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