1.2 KiB
1.2 KiB
Plan 33-02 Summary
Status: Complete Completed: 2026-04-13
What Was Built
Database migration for the new market pricing schema.
Key Changes
- Generated migration
0006_remarkable_susan_delgado.sqlwith Drizzle Kit - CREATE TABLE market_prices with foreign keys and unique constraint
- CREATE TABLE community_prices with foreign keys and unique constraint
- ALTER TABLE items ADD COLUMN price_currency (default 'EUR')
- ALTER TABLE thread_candidates ADD COLUMN found_price_cents, found_price_currency, found_price_date
Key Files Created
drizzle-pg/0006_remarkable_susan_delgado.sql— Migration SQLdrizzle-pg/meta/0006_snapshot.json— Schema snapshot
Self-Check: PASSED
- Migration SQL contains CREATE TABLE market_prices
- Migration SQL contains CREATE TABLE community_prices
- Migration SQL contains ALTER TABLE items ADD COLUMN price_currency
- Migration SQL contains ALTER TABLE thread_candidates ADD COLUMN found_price_cents
Notes
- db:push requires a running PostgreSQL instance — migration will be applied on deployment
- Migration is additive only (new tables, new nullable columns) — no data migration needed