From 6a70fed2e74d28c7b789feac726814000e404ed7 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 0000000000..8e7abd0f6c --- /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'`); + } +}