1
0
Fork 1
mirror of https://example.com synced 2024-11-27 09:16:39 +09:00
firefish/packages/backend/migration/1682777547198-LibreTranslate.js

24 lines
550 B
JavaScript
Raw Normal View History

2023-04-30 10:09:51 +09:00
export class LibreTranslate1682777547198 {
name = "LibreTranslate1682777547198";
async up(queryRunner) {
await queryRunner.query(`
ALTER TABLE "meta"
ADD "libreTranslateApiUrl" character varying(512)
`);
await queryRunner.query(`
ALTER TABLE "meta"
ADD "libreTranslateApiKey" character varying(128)
`);
}
async down(queryRunner) {
await queryRunner.query(`
ALTER TABLE "meta" DROP COLUMN "libreTranslateApiKey"
`);
await queryRunner.query(`
ALTER TABLE "meta" DROP COLUMN "libreTranslateApiUrl"
`);
}
}