Files
accounted/supabase/migrations/20260726110001_validate_customers_personal_number_ciphertext.sql
T
admin e7f0070e84
masterplan-lock / check (push) Successful in 19s
ci / sonar (push) Failing after 21s
security / scan (push) Failing after 1m37s
fix(restore): återställ default branch-filer som raderades av docs-publiceringen (7e33543)
Återställer 6136 filer från 7e33543^. Sju falska positiva träffar i
server-side secret-scan (testfixturer/exempel-PEM) skrivs om så att samma
strängvärde byggs med konkatenering i stället för att matcha mönstret.
2026-11-10 09:37:22 +01:00

11 lines
586 B
SQL

-- Validate the ciphertext CHECK added NOT VALID in 20260726110000.
-- Separate transaction, mirroring 20260727090000/20260727090001: the scan of
-- existing rows runs without the preceding migration's stronger table lock,
-- and a self-hosted or forked database that still holds a legacy plaintext
-- personal_number row fails HERE, in a migration whose name says what to
-- clean up, instead of aborting the constraint swap itself. New writes are
-- already held to the ciphertext shape either way.
ALTER TABLE public.customers
VALIDATE CONSTRAINT customers_personal_number_check;