Skip to content

Commit

Permalink
Fix: ノート編集時に3001文字以上の場合編集できない問題を修正 (kokonect-link#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
penginn-net authored Oct 18, 2024
1 parent 5f02ee4 commit a64fc9f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG_YOJO.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ Cherrypick 4.11.1
- Fix: Opensearch利用時ファイルのセンシティブ状態が変更されたとき変更されるように
- Change: `notes/advanced-search``query`が必須ではなくなりました
- Fix: (Opensearch利用時)高度な検索でリプライ除外にするとエラーがでる

- Fix: ノート編集時に3001文字以上の場合編集できない問題を修正

### Misc

## 1.0.1
Expand Down
14 changes: 14 additions & 0 deletions packages/backend/migration/1729171469427-noteEditHistoryLength.js
Original file line number Diff line number Diff line change
@@ -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)[]');
}
}
2 changes: 1 addition & 1 deletion packages/backend/src/models/Note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class MiNote {
public updatedAtHistory: Date[] | null;

@Column('varchar', {
length: 3000,
length: 8192,
array: true,
default: '{}',
})
Expand Down

0 comments on commit a64fc9f

Please sign in to comment.