mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
ran migrations
This commit is contained in:
@@ -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>
|
||||
|
||||
2
packages/db/migrations/0142_orange_chat.sql
Normal file
2
packages/db/migrations/0142_orange_chat.sql
Normal 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;
|
||||
10290
packages/db/migrations/meta/0142_snapshot.json
Normal file
10290
packages/db/migrations/meta/0142_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user