isMicrosoftAuthEnabled = true (#9812)
This commit is contained in:
@ -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`,
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -135,6 +135,6 @@ export class Workspace {
|
||||
isPasswordAuthEnabled: boolean;
|
||||
|
||||
@Field()
|
||||
@Column({ default: false })
|
||||
@Column({ default: true })
|
||||
isMicrosoftAuthEnabled: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user