ran migrations

This commit is contained in:
waleed
2026-01-15 08:44:28 -08:00
parent 62aa4627cb
commit 59e9264e62
4 changed files with 10302 additions and 2 deletions

View File

@@ -20,6 +20,7 @@ import {
ModalTabsContent,
ModalTabsList,
ModalTabsTrigger,
Switch,
} from '@/components/emcn'
import { Input as BaseInput, Skeleton } from '@/components/ui'
import { useSession } from '@/lib/auth/auth-client'
@@ -666,9 +667,9 @@ export function AccessControl() {
Automatically add new organization members to this group
</span>
</div>
<Checkbox
<Switch
checked={viewingGroup.autoAddNewMembers}
onCheckedChange={(checked) => handleToggleAutoAdd(checked === true)}
onCheckedChange={(checked) => handleToggleAutoAdd(checked)}
disabled={updatePermissionGroup.isPending}
/>
</div>

View File

@@ -0,0 +1,2 @@
ALTER TABLE "permission_group" ADD COLUMN "auto_add_new_members" boolean DEFAULT false NOT NULL;--> statement-breakpoint
CREATE UNIQUE INDEX "permission_group_org_auto_add_unique" ON "permission_group" USING btree ("organization_id") WHERE auto_add_new_members = true;

File diff suppressed because it is too large Load Diff

View File

@@ -988,6 +988,13 @@
"when": 1768421319400,
"tag": "0141_daffy_marten_broadcloak",
"breakpoints": true
},
{
"idx": 142,
"version": "7",
"when": 1768495457515,
"tag": "0142_orange_chat",
"breakpoints": true
}
]
}