From 3ac655d27efa16cbec58c2a6fd7bb4a613f583b2 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 27 Jul 2022 21:31:05 -0700 Subject: [PATCH] fix againnn --- .../backend/migration/1658981842728FixCalckey.js | 15 --------------- .../backend/migration/1658982614728FixCalckey.js | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 15 deletions(-) delete mode 100644 packages/backend/migration/1658981842728FixCalckey.js create mode 100644 packages/backend/migration/1658982614728FixCalckey.js diff --git a/packages/backend/migration/1658981842728FixCalckey.js b/packages/backend/migration/1658981842728FixCalckey.js deleted file mode 100644 index 33ede9f07..000000000 --- a/packages/backend/migration/1658981842728FixCalckey.js +++ /dev/null @@ -1,15 +0,0 @@ -export class FixCalckey1658981842728 { - name = 'FixCalckey1658981842728' - - async up(queryRunner) { - await queryRunner.query(`UPDATE meta SET "useStarForReactionFallback" = TRUE;`); - await queryRunner.query(`UPDATE meta SET "repositoryUrl" = 'https://codeberg/thatonecalculator/calckey'`); - await queryRunner.query(`UPDATE meta SET "feedbackUrl" = 'https://codeberg/thatonecalculator/calckey/issues'`); - } - - async down(queryRunner) { - await queryRunner.query(`UPDATE meta SET "useStarForReactionFallback" = FALSE;`); - await queryRunner.query(`UPDATE meta SET "repositoryUrl" = 'https://codeberg/thatonecalculator/calckey'`); - await queryRunner.query(`UPDATE meta SET "feedbackUrl" = 'https://codeberg/thatonecalculator/calckey/issues'`); - } -} diff --git a/packages/backend/migration/1658982614728FixCalckey.js b/packages/backend/migration/1658982614728FixCalckey.js new file mode 100644 index 000000000..f6ee9287b --- /dev/null +++ b/packages/backend/migration/1658982614728FixCalckey.js @@ -0,0 +1,15 @@ +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"`); + } +}