jormungandr-bite/packages/backend/migration/1671388343000-CalckeyRepoMove.js

24 lines
724 B
JavaScript
Raw Normal View History

2023-07-02 16:18:30 -06:00
/* "FirefishRepoMove1671388343000" is a class that updates the "useStarForReactionFallback" column in
2022-12-18 11:41:11 -07:00
the "meta" table to TRUE */
2023-07-02 16:18:30 -06:00
export class FirefishRepoMove1671388343000 {
name = "FirefishRepoMove1671388343000";
2022-12-18 11:41:11 -07:00
async up(queryRunner) {
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/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/firefish/firefish/issues'`,
2023-04-06 19:56:46 -06:00
);
2022-12-18 11:41:11 -07:00
}
async down(queryRunner) {
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/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/firefish/firefish/issues'`,
2023-04-06 19:56:46 -06:00
);
2022-12-18 11:41:11 -07:00
}
}