isMicrosoftAuthEnabled = true (#9812)

This commit is contained in:
Guillim
2025-01-23 12:22:03 +01:00
committed by GitHub
parent 2f0fa7ae3e
commit e7ba1c82b4
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,19 @@
import { MigrationInterface, QueryRunner } from 'typeorm';
export class WorkspaceEntityDefaultMicrosoftAuthEnabled1737630672873
implements MigrationInterface
{
name = 'WorkspaceEntityDefaultMicrosoftAuthEnabled1737630672873';
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "core"."workspace" ALTER COLUMN "isMicrosoftAuthEnabled" SET DEFAULT true`,
);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "core"."workspace" ALTER COLUMN "isMicrosoftAuthEnabled" SET DEFAULT false`,
);
}
}

View File

@ -135,6 +135,6 @@ export class Workspace {
isPasswordAuthEnabled: boolean;
@Field()
@Column({ default: false })
@Column({ default: true })
isMicrosoftAuthEnabled: boolean;
}