fix: add payment_method column to orders table
Migration 0008: adds payment_method column with default 'pix' Fixes 500 error: column "payment_method" does not exist
This commit is contained in:
parent
f0d64d1801
commit
114e8dc5bc
1 changed files with 7 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
-- Add payment_method column to orders table
|
||||
-- This column tracks how the order was paid (pix, credit_card, debit_card)
|
||||
|
||||
ALTER TABLE orders ADD COLUMN IF NOT EXISTS payment_method TEXT NOT NULL DEFAULT 'pix';
|
||||
|
||||
-- Add comment for documentation
|
||||
COMMENT ON COLUMN orders.payment_method IS 'Payment method: pix, credit_card, debit_card';
|
||||
Loading…
Reference in a new issue