1
0
Fork 1
mirror of https://example.com synced 2024-11-28 11:36:38 +09:00
firefish/packages/backend/migration/1671388343000-CalckeyRepoMove.js
Kainoa Kanter 7fb130b06e formatting
2023-04-06 18:56:46 -07:00

23 lines
713 B
JavaScript

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