notebookVb

This commit is contained in:
administrator
2026-05-29 06:01:55 +02:00
parent be49fe55f6
commit 29037554b8
4 changed files with 595 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
-- Migration: Add thumbnail_path column to photos table
-- Run: psql -h $PGHOST -d $PGDATABASE -U $PGUSER -f migrations/001_add_thumbnail_path.sql
ALTER TABLE photos ADD COLUMN IF NOT EXISTS thumbnail_path VARCHAR(2000);
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_photos_thumbnail_path_null
ON photos (id) WHERE thumbnail_path IS NULL;