1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-05 02:08:56 +09:00
cherrypick/packages/backend/migration/1685378242713-multipleTranslationServices.js

20 lines
1.0 KiB
JavaScript

export class MultipleTranslationServices1685378242713 {
name = 'MultipleTranslationServices1685378242713'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" ADD "ctav3SaKey" character varying(5120)`);
await queryRunner.query(`ALTER TABLE "meta" ADD "ctav3ProjectId" character varying(1024)`);
await queryRunner.query(`ALTER TABLE "meta" ADD "ctav3Location" character varying(1024)`);
await queryRunner.query(`ALTER TABLE "meta" ADD "ctav3Model" character varying(1024)`);
await queryRunner.query(`ALTER TABLE "meta" ADD "ctav3Glossary" character varying(1024)`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "ctav3SaKey"`);
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "ctav3ProjectId"`);
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "ctav3Location"`);
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "ctav3Model"`);
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "ctav3Glossary"`);
}
}