prepared comment counting

This commit is contained in:
luptmoor
2026-04-28 10:04:51 +02:00
parent d0bba3d3f8
commit 02ba53724e
2 changed files with 9 additions and 0 deletions

View File

@@ -31,5 +31,6 @@ CREATE INDEX idx_comments_browser ON comments(browser_id);
-- ---------------------------------------------------------------------
ALTER TABLE contributions
ADD COLUMN photo_path VARCHAR(255) DEFAULT NULL;
ADD COLUMN comment_count INTEGER NOT NULL DEFAULT 0;
COMMENT ON COLUMN contributions.photo_path IS 'Relative Path to uploaded Photo. NULL = no Photo.';