Skip to content

Commit

Permalink
isMicrosoftAuthEnabled = true (#9812)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillim authored Jan 23, 2025
1 parent 2f0fa7a commit e7ba1c8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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`,
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,6 @@ export class Workspace {
isPasswordAuthEnabled: boolean;

@Field()
@Column({ default: false })
@Column({ default: true })
isMicrosoftAuthEnabled: boolean;
}

0 comments on commit e7ba1c8

Please sign in to comment.