From ab07240b11b074ce0b535898655abe3e65ce9793 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 18 Jul 2022 21:04:55 -0700 Subject: [PATCH] migration --- .../backend/migration/1658203170545calckey.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 packages/backend/migration/1658203170545calckey.js diff --git a/packages/backend/migration/1658203170545calckey.js b/packages/backend/migration/1658203170545calckey.js new file mode 100644 index 000000000..8e7abd0f6 --- /dev/null +++ b/packages/backend/migration/1658203170545calckey.js @@ -0,0 +1,15 @@ +export class calckey1658203170545 { + name = 'calckey1658203170545' + + 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'`); + } +}