Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isMicrosoftAuthEnabled = true #9812

Merged
merged 11 commits into from
Jan 23, 2025
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;
}
Loading