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
branches:
include: [ master, develop, feature/* ]
include: [ main, develop, feature/* ]

View file

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

View file

@ -8,4 +8,4 @@ pipeline:
no_push: true
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'`);
}
}