jormungandr-bite/packages/backend/src/migration/1689739513827-firefish-repo.ts

23 lines
761 B
TypeScript
Raw Permalink Normal View History

import { MigrationInterface, QueryRunner } from "typeorm";
export class FirefishRepo1689739513827 implements MigrationInterface {
2023-07-18 22:21:48 -06:00
name = "FirefishRepo1689739513827";
async up(queryRunner: QueryRunner): Promise<void> {
2023-07-18 22:21:48 -06:00
await queryRunner.query(
2023-07-19 16:20:22 -06:00
`UPDATE meta SET "repositoryUrl" = 'https://codeberg.org/firefish/firefish'`,
2023-07-18 22:21:48 -06:00
);
await queryRunner.query(
2023-07-19 16:20:22 -06:00
`UPDATE meta SET "feedbackUrl" = 'https://codeberg.org/firefish/firefish/issues'`,
2023-07-18 22:21:48 -06:00
);
}
async down(queryRunner: QueryRunner): Promise<void> {
2023-07-18 22:21:48 -06:00
await queryRunner.query(
`UPDATE meta SET "repositoryUrl" = 'https://codeberg.org/calckey/calckey'`,
);
await queryRunner.query(
`UPDATE meta SET "feedbackUrl" = 'https://codeberg.org/calckey/calckey/firefish/firefish/issues'`,
);
}
}