summaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-08-15 20:26:44 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-08-15 20:26:44 +0900
commitcced83024bfb578ee802ab13fc8af72a1be9a1e1 (patch)
tree359d6a3eff6250600e714e5ec2a5ae2516cd8353 /migration
parentchore: Remove vips from Dockerfile (#7633) (diff)
downloadsharkey-cced83024bfb578ee802ab13fc8af72a1be9a1e1.tar.gz
sharkey-cced83024bfb578ee802ab13fc8af72a1be9a1e1.tar.bz2
sharkey-cced83024bfb578ee802ab13fc8af72a1be9a1e1.zip
feat: ノートの翻訳機能
Resolve #5213
Diffstat (limited to 'migration')
-rw-r--r--migration/1629024377804-deepl-integration.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/migration/1629024377804-deepl-integration.ts b/migration/1629024377804-deepl-integration.ts
new file mode 100644
index 0000000000..639f947c7d
--- /dev/null
+++ b/migration/1629024377804-deepl-integration.ts
@@ -0,0 +1,14 @@
+import {MigrationInterface, QueryRunner} from "typeorm";
+
+export class deeplIntegration1629024377804 implements MigrationInterface {
+ name = 'deeplIntegration1629024377804'
+
+ public async up(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(`ALTER TABLE "meta" ADD "deeplAuthKey" character varying(128)`);
+ }
+
+ public async down(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "deeplAuthKey"`);
+ }
+
+}