feat: implement Deep Forest dark mode, swipe gestures, PWA support, and PostgreSQL Full-Text Search

This commit is contained in:
Michael committed 2026-02-09 09:18:40 +01:00
1 parent 3e468d8885
commit 7e802df2a7
18 files changed
+4800 -128

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
-- Migration: 005_search_articles_up
-- Description: Add Full-Text Search support to articles table
-- Add tsvector column (generated)
-- Weighting: Title (A), Summary (B), Content (C)
ALTER TABLE articles
ADD COLUMN IF NOT EXISTS tsv tsvector
GENERATED ALWAYS AS (
setweight(to_tsvector('french', coalesce(title, '')), 'A') ||
setweight(to_tsvector('french', coalesce(summary, '')), 'B') ||
setweight(to_tsvector('french', coalesce(content, '')), 'C')
) STORED;
-- Create GIN index for fast searching
CREATE INDEX IF NOT EXISTS idx_articles_tsv ON articles USING GIN(tsv);