Skip to content

Commit

Permalink
set default shouldSync value to false for existing objects
Browse files Browse the repository at this point in the history
  • Loading branch information
ijreilly committed Oct 16, 2024
1 parent 3b30190 commit 680ed90
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ export class AddShouldSyncLabelAndName1728579416430

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "metadata"."objectMetadata" ADD "shouldSyncLabelAndName" boolean NOT NULL DEFAULT true`,
`ALTER TABLE "metadata"."objectMetadata" ADD "shouldSyncLabelAndName" boolean NOT NULL DEFAULT false`,
);

await queryRunner.query(
`ALTER TABLE "metadata"."objectMetadata" ALTER COLUMN "shouldSyncLabelAndName" SET DEFAULT true`,
);
}

Expand Down

0 comments on commit 680ed90

Please sign in to comment.