diff --git a/packages/twenty-server/src/database/typeorm/metadata/migrations/1728579416430-addShouldSyncLabelAndName.ts b/packages/twenty-server/src/database/typeorm/metadata/migrations/1728579416430-addShouldSyncLabelAndName.ts index adf6692861f3..9fedf507cd65 100644 --- a/packages/twenty-server/src/database/typeorm/metadata/migrations/1728579416430-addShouldSyncLabelAndName.ts +++ b/packages/twenty-server/src/database/typeorm/metadata/migrations/1728579416430-addShouldSyncLabelAndName.ts @@ -7,7 +7,11 @@ export class AddShouldSyncLabelAndName1728579416430 public async up(queryRunner: QueryRunner): Promise { 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`, ); }