infoalloggi-monorepo/apps/db/migrations/34_ordiniv2.up.sql
Marco Pedone 6c36bb9b74 feat: add order editing form and payment processing pages
- Implemented FormEditOrder component for editing orders with validation and submission handling.
- Created SchedaAnnuncioPage for displaying printable announcement details.
- Added BonificoManualePage for manual bank transfer payment instructions.
- Developed PagamentoPage for Stripe payment processing with PaymentIntent creation.
- Introduced PreviewPurchasePage for preparing payment with service details.
- Added pagamenti.controller for handling payment preparation and retrieval of payment data.
2026-03-08 01:02:57 +01:00

28 lines
No EOL
741 B
SQL

ALTER TABLE IF EXISTS public.servizio
ADD COLUMN "onboardOk" boolean NOT NULL DEFAULT FALSE;
ALTER TABLE IF EXISTS public.ordini
ADD COLUMN amount_cent integer NOT NULL;
ALTER TABLE IF EXISTS public.ordini ADD COLUMN paymentmethod TEXT;
ALTER TABLE IF EXISTS public.ordini
ADD COLUMN paid_at TIMESTAMP WITHOUT TIME ZONE;
ALTER TABLE IF EXISTS public.ordini ADD COLUMN intent_id TEXT;
ALTER TABLE IF EXISTS public.ordini
ADD COLUMN paymentstatus "PaymentStatusEnum";
ALTER TABLE IF EXISTS public.ordini
ADD COLUMN condizioni TEXT NOT NULL;
ALTER TABLE IF EXISTS public.ordini
ADD COLUMN sconto integer NOT NULL DEFAULT 0;
INSERT INTO
public.flags (id, VALUE)
VALUES (
'STRIPE_DISABLED'::TEXT,
FALSE::boolean
);