543983c914
- RequestDetail: remove auto-project-delete when last task deleted - MyCompany: support multiple companies with selector dropdown - MyCompany: fetch members from both profiles and company_members - ProjectDetail/MyProjectDetail/InvoiceDetail: check Supabase errors before updating state - Migration: drop client project-delete RLS policy (no longer valid) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5 lines
293 B
SQL
5 lines
293 B
SQL
-- Remove the client project-delete policy.
|
|
-- It was added to support auto-deleting empty projects when a client deletes their
|
|
-- last task, but that behavior is wrong — projects should only be deleted explicitly.
|
|
drop policy if exists "Client deletes company projects" on public.projects;
|