Commit Graph

1 Commits

Author SHA1 Message Date
d8dcaa51c9 Migration: Add variant pricing support to database schema
Critical fix for production deployment issue where code changes were
deployed without corresponding database schema updates.

Changes:
- Add Price column to ProductVariants table (decimal 18,2, nullable)
- Add ProductVariantId column to OrderItems table (TEXT, nullable)
- Add index on OrderItems.ProductVariantId for query performance

This migration was manually applied to production on 2025-10-04 to
resolve "no such column: p2.Price" errors that broke the product
catalog API.

Future deployments must include database migration steps in CI/CD.

🤖 Generated with Claude Code
https://claude.com/claude-code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-04 14:46:32 +01:00