Files
sorsfonalak/crates/db/migrations/0044_forum_founders.sql
T
fecoandClaude Opus 5.5 493539bf56 Forum: founders are the first fifteen; the admin can take or give the badge
The site has few members yet, some of them test accounts: the badge goes to
the first fifteen, and the admin can take it from a test account on its
profile (the place goes to the next newcomer) or give it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-26 15:46:44 +00:00

7 lines
418 B
SQL

-- "Alapító tag": the first fifteen members (in the order they chose a
-- nickname) keep the badge for good. The admin can take it from a test
-- account or give it; a freed place goes to the next newcomer.
ALTER TABLE forum.members ADD COLUMN founder boolean NOT NULL DEFAULT false;
UPDATE forum.members SET founder = true
WHERE user_id IN (SELECT user_id FROM forum.members ORDER BY created_at, user_id LIMIT 15);