Commit 4e6ed53
fix(schema): replace dead stripe columns with provider_id columns on products
Dropped stripe_product_id and stripe_price_id (added in 20260201, superseded
in 20260207 by the generic payment_provider column — but never cleaned up).
All rows were NULL and no application code referenced them on products.
Added the missing provider_product_id and provider_price_id columns that the
createProduct / updateProduct server actions have always tried to write. Without
them, any admin form product creation returned PGRST204 "column does not exist".
These columns are provider-agnostic: Stripe stores real IDs, manual provider
stores a local mock ID, PayPal would store its equivalent.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 72f71ce commit 4e6ed53
2 files changed
Lines changed: 30 additions & 0 deletions
File tree
- supabase/migrations
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments