sharkey/packages/backend/migration/1706232992000-deeplx.js

19 lines
624 B
JavaScript
Raw Normal View History

2024-01-27 05:29:38 +09:00
/*
2024-06-15 19:36:55 +09:00
* SPDX-FileCopyrightText: marie and other Sharkey contributors
2024-01-27 05:29:38 +09:00
* SPDX-License-Identifier: AGPL-3.0-only
*/
export class Deeplx1706232992000 {
name = 'Deeplx1706232992000';
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" ADD "deeplFreeMode" boolean NOT NULL DEFAULT false`);
await queryRunner.query(`ALTER TABLE "meta" ADD "deeplFreeInstance" character varying(1024)`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "deeplFreeMode"`);
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "deeplFreeInstance"`);
}
}