diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-24 13:19:21 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-24 13:19:21 +0900 |
| commit | d64e25e4490da7fc508230d92d277b1c5284b381 (patch) | |
| tree | 5eb4f52484b100f59ee091664f5de9bb94c04ca5 /migration | |
| parent | fix(server): use csp to imporve security (diff) | |
| download | misskey-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.ts | 14 |
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"`); + } + +} |