rename column

This commit is contained in:
Philipinho
2025-08-31 12:28:21 -07:00
parent de48e36c7d
commit 9fc9a74f26
5 changed files with 17 additions and 19 deletions

View File

@ -3,15 +3,13 @@ import { type Kysely } from 'kysely';
export async function up(db: Kysely<any>): Promise<void> {
await db.schema
.alterTable('auth_providers')
.addColumn('is_group_sync_enabled', 'boolean', (col) =>
col.defaultTo(false).notNull(),
)
.addColumn('group_sync', 'boolean', (col) => col.defaultTo(false).notNull())
.execute();
}
export async function down(db: Kysely<any>): Promise<void> {
await db.schema
.alterTable('auth_providers')
.dropColumn('is_group_sync_enabled')
.dropColumn('group_sync')// enable_group_sync
.execute();
}
}

View File

@ -62,7 +62,7 @@ export interface AuthProviders {
deletedAt: Timestamp | null;
id: Generated<string>;
isEnabled: Generated<boolean>;
isGroupSyncEnabled: Generated<boolean>;
groupSync: Generated<boolean>;
name: string;
oidcClientId: string | null;
oidcClientSecret: string | null;