mirror of
https://github.com/docmost/docmost.git
synced 2026-08-28 17:27:06 +08:00
backfill
This commit is contained in:
@@ -72,6 +72,15 @@ export async function up(db: Kysely<any>): Promise<void> {
|
|||||||
)
|
)
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
|
// Backfill: mark all non-default groups as external in workspaces with SSO group sync enabled
|
||||||
|
await sql`
|
||||||
|
UPDATE groups SET is_external = true
|
||||||
|
WHERE is_default = false
|
||||||
|
AND workspace_id IN (
|
||||||
|
SELECT workspace_id FROM auth_providers WHERE group_sync = true
|
||||||
|
)
|
||||||
|
`.execute(db);
|
||||||
|
|
||||||
await db.schema
|
await db.schema
|
||||||
.alterTable('workspaces')
|
.alterTable('workspaces')
|
||||||
.addColumn('is_scim_enabled', 'boolean', (col) =>
|
.addColumn('is_scim_enabled', 'boolean', (col) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user