-- Drop legacy versioning function that references deleted tables
-- This function calls create_entity_version() which was removed in the previous migration
DROP FUNCTION IF EXISTS public.auto_create_entity_version() CASCADE;