repo move migration

This commit is contained in:
cutestnekoaqua 2022-12-18 19:41:11 +01:00
parent 1a9e55b0f3
commit 0b87130f08
4 changed files with 18 additions and 3 deletions

View File

@ -14,4 +14,4 @@ matrix:
- 19.2.0 - 19.2.0
branches: branches:
include: [ master, develop, feature/* ] include: [ main, develop, feature/* ]

View File

@ -24,4 +24,4 @@ matrix:
- latest - latest
branches: branches:
include: [ master, develop, feature/* ] include: [ main, develop, feature/* ]

View File

@ -8,4 +8,4 @@ pipeline:
no_push: true no_push: true
branches: branches:
include: [ master, develop ] include: [ main, develop ]

View File

@ -0,0 +1,15 @@
/* "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'`);
}
}