diff --git a/packages/backend/migration/1704206095136-avatardecoration.js b/packages/backend/migration/1704206095136-avatardecoration.js index ca1989d225..15e8f5a7c3 100644 --- a/packages/backend/migration/1704206095136-avatardecoration.js +++ b/packages/backend/migration/1704206095136-avatardecoration.js @@ -2,7 +2,7 @@ export class Avatardecoration1704206095136 { name = 'Avatardecoration1704206095136' async up(queryRunner) { - await queryRunner.query(`ALTER TABLE "avatar_decoration" ADD "category" character varying(256) NOT NULL`); + await queryRunner.query(`ALTER TABLE "avatar_decoration" ADD "category" character varying(256) NOT NULL DEFAULT '{}'`); } async down(queryRunner) { diff --git a/packages/backend/src/models/AvatarDecoration.ts b/packages/backend/src/models/AvatarDecoration.ts index f658663e68..010cbfe82d 100644 --- a/packages/backend/src/models/AvatarDecoration.ts +++ b/packages/backend/src/models/AvatarDecoration.ts @@ -33,6 +33,7 @@ export class MiAvatarDecoration { @Column('varchar', { length: 256, + default: '', }) public category: string;