Fix: Remove deprecated versioning helpers

This commit is contained in:
gpt-engineer-app[bot]
2025-10-15 18:14:42 +00:00
parent 8f56f608f7
commit 455c1da203
2 changed files with 30 additions and 44 deletions

View File

@@ -0,0 +1,15 @@
-- Enable RLS on the archive table
ALTER TABLE public.entity_versions_archive ENABLE ROW LEVEL SECURITY;
-- Create RLS policies for the archive table (same as original)
CREATE POLICY "Moderators can view all archived versions"
ON public.entity_versions_archive
FOR SELECT
TO authenticated
USING (is_moderator(auth.uid()));
CREATE POLICY "Public can view current archived versions"
ON public.entity_versions_archive
FOR SELECT
TO authenticated
USING (is_current = true);