diff --git a/CHANGELOG.md b/CHANGELOG.md index d78294515..69f1123f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ You should also include the user name that made the change. ### Improvements - Playのプリセットを追加 +- Playのscriptの文字数制限を緩和 - AiScript GUIの強化 - 存在しないカスタム絵文字をテキストで表示するように diff --git a/packages/backend/migration/1674086433654-flashScriptLength.js b/packages/backend/migration/1674086433654-flashScriptLength.js new file mode 100644 index 000000000..a4d149fe1 --- /dev/null +++ b/packages/backend/migration/1674086433654-flashScriptLength.js @@ -0,0 +1,11 @@ +export class flashScriptLength1674086433654 { + name = 'flashScriptLength1674086433654' + + async up(queryRunner) { + await queryRunner.query(`ALTER TABLE "flash" ALTER COLUMN "script" TYPE character varying(32768)`); + } + + async down(queryRunner) { + await queryRunner.query(`ALTER TABLE "flash" ALTER COLUMN "script" TYPE character varying(16384)`); + } +} diff --git a/packages/backend/src/models/entities/Flash.ts b/packages/backend/src/models/entities/Flash.ts index d9a6ac987..07039d4fa 100644 --- a/packages/backend/src/models/entities/Flash.ts +++ b/packages/backend/src/models/entities/Flash.ts @@ -44,7 +44,7 @@ export class Flash { public user: User | null; @Column('varchar', { - length: 16384, + length: 32768, }) public script: string;