Files
fourge-portal/supabase/migrations/20260409120100_add_revision_billing.sql
Krao Hasanee eee0885811 Fix file sharing load speed and move error; misc updates
- Remove recursive directory size calculations (single Seafile API call per list)
- Remove 'Used in this location' usage display
- Fix move using v2 per-type endpoints instead of broken batch endpoint
- Send entry type from frontend for correct move routing

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 14:20:38 -04:00

24 lines
669 B
SQL

alter table public.submissions
add column if not exists revision_type text;
do $$
begin
if not exists (
select 1
from pg_constraint
where conname = 'submissions_revision_type_check'
and conrelid = 'public.submissions'::regclass
) then
alter table public.submissions
add constraint submissions_revision_type_check
check (revision_type in ('fourge_error', 'client_revision'));
end if;
end;
$$;
alter table public.submissions
add column if not exists invoiced boolean not null default false;
alter table public.invoice_items
add column if not exists submission_id uuid references public.submissions(id) on delete set null;