Tests fixes, audit progress, UI completions

This commit is contained in:
StellaOps Bot
2025-12-30 09:03:22 +02:00
parent 7a5210e2aa
commit 82e55c206a
318 changed files with 7232 additions and 1256 deletions

View File

@@ -0,0 +1,20 @@
-- ============================================================================
-- SCANNER STORAGE - ENABLE PG_TRGM EXTENSION
-- ============================================================================
-- Migration: 019_enable_pg_trgm.sql
-- Description: Enables pg_trgm extension before trigram indexes are created
-- ============================================================================
CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public;
DO $$
BEGIN
IF EXISTS (
SELECT 1
FROM pg_extension
WHERE extname = 'pg_trgm'
AND extnamespace <> 'public'::regnamespace
) THEN
ALTER EXTENSION pg_trgm SET SCHEMA public;
END IF;
END $$;

View File

@@ -7,6 +7,11 @@
-- CLI (external submissions), Git (source code scanning)
-- ============================================================================
-- ============================================================================
-- ENABLE TRIGRAM EXTENSION (if not exists)
-- ============================================================================
CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public;
-- ============================================================================
-- ENUMS
-- ============================================================================
@@ -265,11 +270,6 @@ BEGIN
END;
$$ LANGUAGE plpgsql IMMUTABLE;
-- ============================================================================
-- ENABLE TRIGRAM EXTENSION (if not exists)
-- ============================================================================
CREATE EXTENSION IF NOT EXISTS pg_trgm;
-- ============================================================================
-- COMMENTS
-- ============================================================================