Files
fourge-portal/supabase/migrations/20260407180500_add_server_status_overrides.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

23 lines
757 B
SQL

create table if not exists public.server_status_overrides (
id boolean primary key default true,
supabase_egress_bytes bigint,
vercel_fast_data_transfer_bytes bigint,
vercel_edge_requests bigint,
vercel_function_invocations bigint,
vercel_active_cpu_hours numeric(10,4),
updated_at timestamptz not null default now()
);
alter table public.server_status_overrides enable row level security;
drop policy if exists "Team all server_status_overrides" on public.server_status_overrides;
create policy "Team all server_status_overrides"
on public.server_status_overrides
for all
using (get_my_role() = 'team')
with check (get_my_role() = 'team');
insert into public.server_status_overrides (id)
values (true)
on conflict (id) do nothing;