1
0
Fork 1
mirror of https://example.com synced 2024-11-26 18:26:39 +09:00
firefish/packages/backend/migration/1671388343000-CalckeyRepoMove.js
ThatOneCalculator 6da5a5b89b
find and replace
2023-07-02 15:18:30 -07:00

23 lines
724 B
JavaScript

/* "FirefishRepoMove1671388343000" is a class that updates the "useStarForReactionFallback" column in
the "meta" table to TRUE */
export class FirefishRepoMove1671388343000 {
name = "FirefishRepoMove1671388343000";
async up(queryRunner) {
await queryRunner.query(
`UPDATE meta SET "repositoryUrl" = 'https://codeberg/firefish/firefish'`,
);
await queryRunner.query(
`UPDATE meta SET "feedbackUrl" = 'https://codeberg/firefish/firefish/issues'`,
);
}
async down(queryRunner) {
await queryRunner.query(
`UPDATE meta SET "repositoryUrl" = 'https://codeberg/firefish/firefish'`,
);
await queryRunner.query(
`UPDATE meta SET "feedbackUrl" = 'https://codeberg/firefish/firefish/issues'`,
);
}
}