quick fix

This commit is contained in:
Dionisio
2026-03-05 21:21:45 +01:00
parent ecd1a8148a
commit d0118bf07d
+6 -7
View File
@@ -6,6 +6,12 @@
-- All tables use IF NOT EXISTS for idempotent re-runs. -- All tables use IF NOT EXISTS for idempotent re-runs.
-- ============================================================ -- ============================================================
-- ============================================================
-- 0. REQUIRED EXTENSIONS (must come before any table/index)
-- ============================================================
CREATE EXTENSION IF NOT EXISTS pg_trgm;
CREATE EXTENSION IF NOT EXISTS ltree;
-- ============================================================ -- ============================================================
-- 1. AUTH SCHEMA -- 1. AUTH SCHEMA
-- ============================================================ -- ============================================================
@@ -286,10 +292,6 @@ COMMENT ON TABLE caldav.calendar_events IS 'Calendar events (VEVENT) stored with
COMMENT ON TABLE caldav.calendar_shares IS 'Calendar sharing permissions between users'; COMMENT ON TABLE caldav.calendar_shares IS 'Calendar sharing permissions between users';
COMMENT ON TABLE caldav.calendar_properties IS 'Custom WebDAV properties on calendars'; COMMENT ON TABLE caldav.calendar_properties IS 'Custom WebDAV properties on calendars';
-- ── pg_trgm extension for GIN trigram indexes (ILIKE / LIKE substring search) ──
-- Required before creating any gin_trgm_ops indexes below.
CREATE EXTENSION IF NOT EXISTS pg_trgm;
-- ============================================================ -- ============================================================
-- 3. CARDDAV SCHEMA (RFC 6352) -- 3. CARDDAV SCHEMA (RFC 6352)
-- ============================================================ -- ============================================================
@@ -412,9 +414,6 @@ COMMENT ON TABLE carddav.group_memberships IS 'Many-to-many relationship between
-- ============================================================ -- ============================================================
CREATE SCHEMA IF NOT EXISTS storage; CREATE SCHEMA IF NOT EXISTS storage;
-- Enable ltree extension for hierarchical path operations
CREATE EXTENSION IF NOT EXISTS ltree;
-- Content-addressable blob index (dedup) -- Content-addressable blob index (dedup)
-- One row per unique content hash; multiple storage.files rows may -- One row per unique content hash; multiple storage.files rows may
-- reference the same blob via blob_hash → storage.blobs.hash. -- reference the same blob via blob_hash → storage.blobs.hash.