From bcc62596f6dfa00a1efa77bce8190cd3490337cc Mon Sep 17 00:00:00 2001 From: martmull Date: Thu, 8 Feb 2024 14:46:37 +0100 Subject: [PATCH] Add defaultAvatarUrl to core user (#3883) * Add defaultAvatarUrl to core user This reverts commit 1701c30eb18804558293cc42043aedf96ea888df. * Fix --------- Co-authored-by: Charles Bochet --- ...1706613419989-addDefaultAvatarUrlToUser.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 packages/twenty-server/src/database/typeorm/core/migrations/1706613419989-addDefaultAvatarUrlToUser.ts diff --git a/packages/twenty-server/src/database/typeorm/core/migrations/1706613419989-addDefaultAvatarUrlToUser.ts b/packages/twenty-server/src/database/typeorm/core/migrations/1706613419989-addDefaultAvatarUrlToUser.ts new file mode 100644 index 000000000..c1fcaeff6 --- /dev/null +++ b/packages/twenty-server/src/database/typeorm/core/migrations/1706613419989-addDefaultAvatarUrlToUser.ts @@ -0,0 +1,19 @@ +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class AddDefaultAvatarUrlToUser1706613419989 + implements MigrationInterface +{ + name = 'AddDefaultAvatarUrlToUser1706613419989'; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE "core"."user" ADD "defaultAvatarUrl" character varying`, + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE "core"."user" DROP COLUMN "defaultAvatarUrl"`, + ); + } +}