saveinmed/backend/internal/repository/postgres/migrations/0016_shipping_columns.sql
Gabbriiel 90467db1ec refactor: substitui backend Medusa por backend Go e corrige testes do marketplace
- Remove backend Medusa.js (TypeScript) e substitui pelo backend Go (saveinmed-performance-core)
- Corrige testes auth.test.ts: alinha paths de API (v1/ sem barra inicial) e campo access_token
- Corrige GroupedProductCard.test.tsx: ajusta distância formatada (toFixed) e troca userEvent por fireEvent com fakeTimers
- Corrige AuthContext.test.tsx: usa vi.hoisted() para mocks e corrige parênteses no waitFor

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 04:56:37 -06:00

6 lines
287 B
SQL

-- Add shipping details and distance to orders table
ALTER TABLE orders
ADD COLUMN shipping_fee_cents BIGINT DEFAULT 0,
ADD COLUMN distance_km DOUBLE PRECISION DEFAULT 0,
ADD COLUMN shipping_latitude DOUBLE PRECISION DEFAULT 0,
ADD COLUMN shipping_longitude DOUBLE PRECISION DEFAULT 0;