Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

chore(blocklist): delete blocklist entries with NULL profile_id (#14397)

Ayush Anand6482aa5fe53e
diff --git a/migrations/2026-09-23-100000_delete_null_profile_blocklist_entries/down.sql b/migrations/2026-09-23-100000_delete_null_profile_blocklist_entries/down.sql
new file mode 100644
index 0000000000..e0ac49d1ec
--- /dev/null
+++ b/migrations/2026-09-23-100000_delete_null_profile_blocklist_entries/down.sql
@@ -0,0 +1 @@
+SELECT 1;
diff --git a/migrations/2026-09-23-100000_delete_null_profile_blocklist_entries/up.sql b/migrations/2026-09-23-100000_delete_null_profile_blocklist_entries/up.sql
new file mode 100644
index 0000000000..afb8ed6cc2
--- /dev/null
+++ b/migrations/2026-09-23-100000_delete_null_profile_blocklist_entries/up.sql
@@ -0,0 +1,4 @@
+-- Remove blocklist entries that predate profile scoping. Every such entry has already been copied
+-- to each business profile of its merchant by the backfill in
+-- 2026-08-19-100000_backfill_blocklist_profile_id, so the NULL profile_id rows are no longer needed.
+DELETE FROM blocklist WHERE profile_id IS NULL;