Add defaultAvatarUrl to core user (#3883)
* Add defaultAvatarUrl to core user This reverts commit 1701c30eb18804558293cc42043aedf96ea888df. * Fix --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -0,0 +1,19 @@
|
||||
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||
|
||||
export class AddDefaultAvatarUrlToUser1706613419989
|
||||
implements MigrationInterface
|
||||
{
|
||||
name = 'AddDefaultAvatarUrlToUser1706613419989';
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."user" ADD "defaultAvatarUrl" character varying`,
|
||||
);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."user" DROP COLUMN "defaultAvatarUrl"`,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user