2023-10-13 10:17:29 -06:00
|
|
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class FixRepo1679269929000 implements MigrationInterface {
|
2023-04-06 19:56:46 -06:00
|
|
|
name = "FixRepo1679269929000";
|
2023-03-19 17:53:49 -06:00
|
|
|
|
2023-10-13 10:17:29 -06:00
|
|
|
async up(queryRunner: QueryRunner): Promise<void> {
|
2023-04-06 19:56:46 -06:00
|
|
|
await queryRunner.query(
|
2023-07-02 16:18:30 -06:00
|
|
|
`UPDATE meta SET "repositoryUrl" = 'https://codeberg.org/firefish/firefish'`,
|
2023-04-06 19:56:46 -06:00
|
|
|
);
|
|
|
|
await queryRunner.query(
|
2023-07-02 16:18:30 -06:00
|
|
|
`UPDATE meta SET "feedbackUrl" = 'https://codeberg.org/firefish/firefish/issues'`,
|
2023-04-06 19:56:46 -06:00
|
|
|
);
|
2023-03-19 17:53:49 -06:00
|
|
|
}
|
|
|
|
|
2023-10-13 10:17:29 -06:00
|
|
|
async down(queryRunner: QueryRunner): Promise<void> {
|
2023-04-06 19:56:46 -06:00
|
|
|
await queryRunner.query(
|
2023-07-02 16:18:30 -06:00
|
|
|
`UPDATE meta SET "repositoryUrl" = 'https://codeberg.org/firefish/firefish'`,
|
2023-04-06 19:56:46 -06:00
|
|
|
);
|
|
|
|
await queryRunner.query(
|
2023-07-02 16:18:30 -06:00
|
|
|
`UPDATE meta SET "feedbackUrl" = 'https://codeberg.org/firefish/firefish/issues'`,
|
2023-04-06 19:56:46 -06:00
|
|
|
);
|
2023-03-19 17:53:49 -06:00
|
|
|
}
|
|
|
|
}
|