Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: PagoPA-2427 migration service type adjustment 1️⃣ ㏈ #272

Merged
merged 8 commits into from
Jan 20, 2025
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
-- Primo step: aggiornamento per 'WISP'
DO $$
BEGIN
-- Aggiornamento per 'WISP'
UPDATE payment_position
SET service_type = 'WISP'
WHERE iupd ILIKE 'wisp_%';

EXCEPTION
WHEN OTHERS THEN
-- Gestione dell'errore
RAISE NOTICE 'Errore durante l''aggiornamento per WISP. Tipo di errore: %, Messaggio di errore: %', SQLSTATE, SQLERRM;
RAISE;
END;
$$;

-- Secondo step: aggiornamento per 'ACA'
DO $$
BEGIN
-- Aggiornamento per 'ACA'
UPDATE payment_position
SET service_type = 'ACA'
WHERE iupd ILIKE 'aca_%';

EXCEPTION
WHEN OTHERS THEN
-- Gestione dell'errore
RAISE NOTICE 'Errore durante l''aggiornamento per ACA. Tipo di errore: %, Messaggio di errore: %', SQLSTATE, SQLERRM;
RAISE;
END;
$$;
Loading