calckey/packages/backend/migration/1658982614728FixCalckey.js

16 lines
798 B
JavaScript
Raw Normal View History

2022-07-28 04:31:05 +00:00
export class FixCalckey1658982614728 {
name = "FixCalckey1658982614728"
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" SET "useStarForReactionFallback" = TRUE;`);
await queryRunner.query(`ALTER TABLE "meta" SET "repositoryUrl" = "https://codeberg/thatonecalculator/calckey"`);
await queryRunner.query(`ALTER TABLE "meta" SET "feedbackUrl" = "https://codeberg/thatonecalculator/calckey/issues"`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" SET "useStarForReactionFallback" = FALSE;`);
await queryRunner.query(`ALTER TABLE "meta" SET "repositoryUrl" = "https://codeberg/thatonecalculator/calckey"`);
await queryRunner.query(`ALTER TABLE "meta" SET "feedbackUrl" = "https://codeberg/thatonecalculator/calckey/issues"`);
}
}