Files
Enterprise-Knowledge-Base/migrations/versioned/000013_organization_member_limit.up.sql
T
wizardchen ca1b3da1df feat(organization): add member limit feature
- Introduced a new member limit feature for organizations, allowing a maximum number of members to be set (default is 50; 0 means unlimited).
- Updated API endpoints to handle member limit during organization creation and updates.
- Implemented validation to prevent adding members when the limit is reached.
- Enhanced UI components to display and manage member limits, including localization updates for English and Chinese.
- Added migration files to support the new member limit column in the organizations table.

This update improves organization management by allowing administrators to control membership size.
2026-02-09 11:40:25 +08:00

7 lines
300 B
SQL

-- Migration: 000013_organization_member_limit
-- Description: Add member_limit to organizations (0 = unlimited)
ALTER TABLE organizations
ADD COLUMN IF NOT EXISTS member_limit INTEGER NOT NULL DEFAULT 50;
COMMENT ON COLUMN organizations.member_limit IS 'Max members allowed; 0 means no limit';