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:
Tiago Yamamoto 2025-12-26 22:56:46 -03:00
parent f0d64d1801
commit 114e8dc5bc

View file

@ -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';