From afc0be67908f92fd57803329cebdee454fd75442 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 19 Jan 2023 09:06:11 +0900 Subject: [PATCH] =?UTF-8?q?enhance:=20play=E3=81=AEscript=E3=81=AE?= =?UTF-8?q?=E6=96=87=E5=AD=97=E6=95=B0=E5=88=B6=E9=99=90=E3=82=92=E7=B7=A9?= =?UTF-8?q?=E5=92=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + .../migration/1674086433654-flashScriptLength.js | 11 +++++++++++ packages/backend/src/models/entities/Flash.ts | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 packages/backend/migration/1674086433654-flashScriptLength.js 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;