From 6a06ec134789660e4f8be4ee7d75e79689e95e58 Mon Sep 17 00:00:00 2001 From: mattyatea Date: Wed, 3 Jan 2024 01:32:22 +0900 Subject: [PATCH] 2023.12.2-PrisMisskey.2 bug fix --- packages/backend/migration/1704206095136-avatardecoration.js | 2 +- packages/backend/src/models/AvatarDecoration.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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;