Fix multiple UI/UX issues and invite token migration
Fixes: - Round edit: Add cache invalidation for voting dates - Criteria weights: Replace number input with visual slider - Member invite: Per-member expertise tags with suggestions - Tags now added per member, not globally - Comma key support for quick tag entry - Suggested tags based on ocean/business expertise - Accept-invite: Add Suspense boundary for useSearchParams - Add missing inviteToken columns migration The invite token columns were accidentally skipped in prototype1 migration. This adds them with IF NOT EXISTS checks. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
-- Add invite token columns to User table if they don't exist
|
||||
-- These were accidentally skipped in the prototype1_improvements migration
|
||||
|
||||
DO $$
|
||||
BEGIN
|
||||
-- Add inviteToken column if it doesn't exist
|
||||
IF NOT EXISTS (
|
||||
SELECT 1 FROM information_schema.columns
|
||||
WHERE table_name = 'User' AND column_name = 'inviteToken'
|
||||
) THEN
|
||||
ALTER TABLE "User" ADD COLUMN "inviteToken" TEXT;
|
||||
END IF;
|
||||
|
||||
-- Add inviteTokenExpiresAt column if it doesn't exist
|
||||
IF NOT EXISTS (
|
||||
SELECT 1 FROM information_schema.columns
|
||||
WHERE table_name = 'User' AND column_name = 'inviteTokenExpiresAt'
|
||||
) THEN
|
||||
ALTER TABLE "User" ADD COLUMN "inviteTokenExpiresAt" TIMESTAMP(3);
|
||||
END IF;
|
||||
END $$;
|
||||
|
||||
-- Create unique index on inviteToken if it doesn't exist
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS "User_inviteToken_key" ON "User"("inviteToken");
|
||||
Reference in New Issue
Block a user