summaryrefslogtreecommitdiff
path: root/migration/1629024377804-deepl-integration.ts
diff options
context:
space:
mode:
Diffstat (limited to 'migration/1629024377804-deepl-integration.ts')
-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"`);
+ }
+
+}