add: libretranslate
This commit is contained in:
parent
c5440c20c6
commit
40599190f7
8 changed files with 190 additions and 59 deletions
18
packages/backend/migration/1741215877000-libetranslate.js
Normal file
18
packages/backend/migration/1741215877000-libetranslate.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: marie and other Sharkey contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
export class Libetranslate1741215877000 {
|
||||
name = 'Libretranslate1741215877000';
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "meta" ADD "libreTranslateURL" character varying(1024)`);
|
||||
await queryRunner.query(`ALTER TABLE "meta" ADD "libreTranslateKey" character varying(1024)`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "libreTranslateURL"`);
|
||||
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "libreTranslateKey"`);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue