Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

481 B
Raw Blame
ALTER TABLE "workspace_invitations" ALTER COLUMN "expires_at" DROP NOT NULL;--> statement-breakpoint
ALTER TABLE "workspace_invitations" ADD COLUMN IF NOT EXISTS "reusable" boolean DEFAULT false NOT NULL;--> statement-breakpoint
DO $$ BEGIN
  ALTER TABLE "workspace_invitations" ADD CONSTRAINT "workspace_invitations_expiry_required" CHECK ("workspace_invitations"."reusable" OR "workspace_invitations"."expires_at" IS NOT NULL);
EXCEPTION WHEN duplicate_object THEN NULL; END $$;