Files
papercrate/backend/migrations/20240902160000_add_tenant_unique_constraints/up.sql
T
2025-10-23 16:58:52 +02:00

8 lines
249 B
SQL

CREATE UNIQUE INDEX tenants_storage_root_unique
ON public.tenants (storage_root)
WHERE storage_root IS NOT NULL;
CREATE UNIQUE INDEX tenants_quickwit_index_unique
ON public.tenants (quickwit_index)
WHERE quickwit_index IS NOT NULL;