diff --git a/CHANGELOG_YOJO.md b/CHANGELOG_YOJO.md index a71e81c19e..abc99ea7df 100644 --- a/CHANGELOG_YOJO.md +++ b/CHANGELOG_YOJO.md @@ -43,7 +43,8 @@ Cherrypick 4.11.1 - Fix: Opensearch利用時ファイルのセンシティブ状態が変更されたとき変更されるように - Change: `notes/advanced-search`で`query`が必須ではなくなりました - Fix: (Opensearch利用時)高度な検索でリプライ除外にするとエラーがでる - +- Fix: ノート編集時に3001文字以上の場合編集できない問題を修正 + ### Misc ## 1.0.1 diff --git a/packages/backend/migration/1729171469427-noteEditHistoryLength.js b/packages/backend/migration/1729171469427-noteEditHistoryLength.js new file mode 100644 index 0000000000..10c77b66f6 --- /dev/null +++ b/packages/backend/migration/1729171469427-noteEditHistoryLength.js @@ -0,0 +1,14 @@ +/* + * SPDX-FileCopyrightText: syuilo and misskey-project, yojo-art team + * SPDX-License-Identifier: AGPL-3.0-only + */ +export class noteEditHistoryLength1729171469427 { + name = 'noteEditHistoryLength1729171469427'; + async up(queryRunner) { + await queryRunner.query('ALTER TABLE "note" ALTER COLUMN "noteEditHistory" TYPE varchar(8192)[]'); + } + + async down(queryRunner) { + await queryRunner.query('ALTER TABLE "note" ALTER COLUMN "noteEditHistory" TYPE varchar(3000)[]'); + } +} diff --git a/packages/backend/src/models/Note.ts b/packages/backend/src/models/Note.ts index 9709dc840c..e9037bf494 100644 --- a/packages/backend/src/models/Note.ts +++ b/packages/backend/src/models/Note.ts @@ -27,7 +27,7 @@ export class MiNote { public updatedAtHistory: Date[] | null; @Column('varchar', { - length: 3000, + length: 8192, array: true, default: '{}', })