jormungandr-bite/packages/backend/src/migration/1658981842728FixCalckey.ts

29 lines
924 B
TypeScript
Raw Normal View History

import { MigrationInterface, QueryRunner } from "typeorm";
export class FixFirefish1658981842728 implements MigrationInterface {
2023-07-02 15:18:30 -07:00
name = "FixFirefish1658981842728";
2022-07-27 21:31:05 -07:00
async up(queryRunner: QueryRunner): Promise<void> {
2023-04-06 18:56:46 -07:00
await queryRunner.query(
`UPDATE "meta" SET "useStarForReactionFallback" = TRUE;`,
);
await queryRunner.query(
2023-07-02 15:18:30 -07:00
`UPDATE "meta" SET "repositoryUrl" = 'https://codeberg/firefish/firefish'`,
2023-04-06 18:56:46 -07:00
);
await queryRunner.query(
2023-07-02 15:18:30 -07:00
`UPDATE "meta" SET "feedbackUrl" = 'https://codeberg/firefish/firefish/issues'`,
2023-04-06 18:56:46 -07:00
);
2022-07-27 21:31:05 -07:00
}
async down(queryRunner: QueryRunner): Promise<void> {
2023-04-06 18:56:46 -07:00
await queryRunner.query(
`UPDATE "meta" SET "useStarForReactionFallback" = FALSE;`,
);
await queryRunner.query(
2023-07-02 15:18:30 -07:00
`UPDATE "meta" SET "repositoryUrl" = 'https://codeberg/firefish/firefish'`,
2023-04-06 18:56:46 -07:00
);
await queryRunner.query(
2023-07-02 15:18:30 -07:00
`UPDATE "meta" SET "feedbackUrl" = 'https://codeberg/firefish/firefish/issues'`,
2023-04-06 18:56:46 -07:00
);
2022-07-27 21:31:05 -07:00
}
}