snipe/app/db/migrations
pyr0ball 3a4b33d5dd feat: wire community module + corrections router (#31 #32 #33)
Corrections (#31):
- Add 010_corrections.sql migration (from cf-core CORRECTIONS_MIGRATION_SQL)
- Wire make_corrections_router() at /api/corrections (shared_db, product='snipe')
- get_shared_db() dependency aggregates corrections across all cloud users

Community module (#32 #33):
- Init SnipeCommunityStore at startup when COMMUNITY_DB_URL is set
- Graceful skip if COMMUNITY_DB_URL is unset (local mode, community disabled)
- add_to_blocklist() publishes confirmed_scam=True seller_trust signal to
  community postgres on every manual blocklist addition (fire-and-forget)
- BlocklistAdd gains flags[] field so active red-flag keys travel with signal

cf-orch community postgres (cf-orch#36) + cf-core module (cf-core#47) both merged.
2026-04-14 08:33:00 -07:00
..
001_init.sql feat: add data models, migrations, and store 2026-03-25 13:08:55 -07:00
002_add_listing_format.sql feat(snipe): auction support + easter eggs (Konami, The Steal, de-emphasis) 2026-03-25 14:27:02 -07:00
003_nullable_account_age.sql fix: account_age_days=None for scraper tier, stop false new_account flags 2026-03-25 20:36:43 -07:00
004_staging_tracking.sql revert: remove ADD COLUMN IF NOT EXISTS (not a SQLite feature) 2026-04-05 22:24:06 -07:00
005_listing_category.sql revert: remove ADD COLUMN IF NOT EXISTS (not a SQLite feature) 2026-04-05 22:24:06 -07:00
006_scammer_blocklist.sql feat: scammer blocklist, search/listing UI overhaul, tier refactor 2026-04-03 19:08:54 -07:00
007_background_tasks.sql fix(tasks): address code review — cloud DB path, migration number, connection handling, enqueue site 2026-03-31 17:00:01 -07:00
008_community_signals.sql feat: snipe beta backlog batch (tickets #22/#28/#30/#34/#35/#36/#37/#38) 2026-04-13 19:32:50 -07:00
009_user_preferences.sql feat: snipe beta backlog batch (tickets #22/#28/#30/#34/#35/#36/#37/#38) 2026-04-13 19:32:50 -07:00
010_corrections.sql feat: wire community module + corrections router (#31 #32 #33) 2026-04-14 08:33:00 -07:00