summaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-08-24 13:19:21 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-08-24 13:19:21 +0900
commitd64e25e4490da7fc508230d92d277b1c5284b381 (patch)
tree5eb4f52484b100f59ee091664f5de9bb94c04ca5 /migration
parentfix(server): use csp to imporve security (diff)
downloadmisskey-d64e25e4490da7fc508230d92d277b1c5284b381.tar.gz
misskey-d64e25e4490da7fc508230d92d277b1c5284b381.tar.bz2
misskey-d64e25e4490da7fc508230d92d277b1c5284b381.zip
fix: support DeepL pro account
Fix #7648
Diffstat (limited to 'migration')
-rw-r--r--migration/1629778475000-deepl-integration2.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/migration/1629778475000-deepl-integration2.ts b/migration/1629778475000-deepl-integration2.ts
new file mode 100644
index 0000000000..67e5ea02ae
--- /dev/null
+++ b/migration/1629778475000-deepl-integration2.ts
@@ -0,0 +1,14 @@
+import {MigrationInterface, QueryRunner} from "typeorm";
+
+export class deeplIntegration21629778475000 implements MigrationInterface {
+ name = 'deeplIntegration21629778475000'
+
+ public async up(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(`ALTER TABLE "meta" ADD "deeplIsPro" boolean NOT NULL DEFAULT false`);
+ }
+
+ public async down(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "deeplIsPro"`);
+ }
+
+}